| 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: tensorflow/compiler/xla/xla_data.proto |
| 3 | |
| 4 | #ifndef PROTOBUF_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto_INCLUDED |
| 5 | #define PROTOBUF_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto_INCLUDED |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include <google/protobuf/stubs/common.h> |
| 10 | |
| 11 | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
| 12 | #error This file was generated by a newer version of protoc which is |
| 13 | #error incompatible with your Protocol Buffer headers. Please update |
| 14 | #error your headers. |
| 15 | #endif |
| 16 | #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
| 17 | #error This file was generated by an older version of protoc which is |
| 18 | #error incompatible with your Protocol Buffer headers. Please |
| 19 | #error regenerate this file with a newer version of protoc. |
| 20 | #endif |
| 21 | |
| 22 | #include <google/protobuf/io/coded_stream.h> |
| 23 | #include <google/protobuf/arena.h> |
| 24 | #include <google/protobuf/arenastring.h> |
| 25 | #include <google/protobuf/generated_message_table_driven.h> |
| 26 | #include <google/protobuf/generated_message_util.h> |
| 27 | #include <google/protobuf/metadata.h> |
| 28 | #include <google/protobuf/message.h> |
| 29 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
| 30 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
| 31 | #include <google/protobuf/generated_enum_reflection.h> |
| 32 | #include <google/protobuf/unknown_field_set.h> |
| 33 | // @@protoc_insertion_point(includes) |
| 34 | |
| 35 | namespace protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto { |
| 36 | // Internal implementation detail -- do not use these members. |
| 37 | struct TableStruct { |
| 38 | static const ::google::protobuf::internal::ParseTableField entries[]; |
| 39 | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
| 40 | static const ::google::protobuf::internal::ParseTable schema[68]; |
| 41 | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
| 42 | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
| 43 | static const ::google::protobuf::uint32 offsets[]; |
| 44 | }; |
| 45 | void AddDescriptors(); |
| 46 | void InitDefaultsPaddingConfig_PaddingConfigDimensionImpl(); |
| 47 | void InitDefaultsPaddingConfig_PaddingConfigDimension(); |
| 48 | void InitDefaultsPaddingConfigImpl(); |
| 49 | void InitDefaultsPaddingConfig(); |
| 50 | void InitDefaultsLayoutImpl(); |
| 51 | void InitDefaultsLayout(); |
| 52 | void InitDefaultsShapeImpl(); |
| 53 | void InitDefaultsShape(); |
| 54 | void InitDefaultsProgramShapeImpl(); |
| 55 | void InitDefaultsProgramShape(); |
| 56 | void InitDefaultsComputationStatsImpl(); |
| 57 | void InitDefaultsComputationStats(); |
| 58 | void InitDefaultsOpMetadataImpl(); |
| 59 | void InitDefaultsOpMetadata(); |
| 60 | void InitDefaultsExecutionProfileImpl(); |
| 61 | void InitDefaultsExecutionProfile(); |
| 62 | void InitDefaultsComputationHandleImpl(); |
| 63 | void InitDefaultsComputationHandle(); |
| 64 | void InitDefaultsExecutionHandleImpl(); |
| 65 | void InitDefaultsExecutionHandle(); |
| 66 | void InitDefaultsGlobalDataHandleImpl(); |
| 67 | void InitDefaultsGlobalDataHandle(); |
| 68 | void InitDefaultsComputationDataHandleImpl(); |
| 69 | void InitDefaultsComputationDataHandle(); |
| 70 | void InitDefaultsDeviceHandleImpl(); |
| 71 | void InitDefaultsDeviceHandle(); |
| 72 | void InitDefaultsChannelHandleImpl(); |
| 73 | void InitDefaultsChannelHandle(); |
| 74 | void InitDefaultsDeviceAssignmentProto_ComputationDeviceImpl(); |
| 75 | void InitDefaultsDeviceAssignmentProto_ComputationDevice(); |
| 76 | void InitDefaultsDeviceAssignmentProtoImpl(); |
| 77 | void InitDefaultsDeviceAssignmentProto(); |
| 78 | void InitDefaultsLiteralProtoImpl(); |
| 79 | void InitDefaultsLiteralProto(); |
| 80 | void InitDefaultsWindowDimensionImpl(); |
| 81 | void InitDefaultsWindowDimension(); |
| 82 | void InitDefaultsWindowImpl(); |
| 83 | void InitDefaultsWindow(); |
| 84 | void InitDefaultsGatherDimensionNumbersImpl(); |
| 85 | void InitDefaultsGatherDimensionNumbers(); |
| 86 | void InitDefaultsConstantRequestImpl(); |
| 87 | void InitDefaultsConstantRequest(); |
| 88 | void InitDefaultsGetTupleElementRequestImpl(); |
| 89 | void InitDefaultsGetTupleElementRequest(); |
| 90 | void InitDefaultsSliceRequestImpl(); |
| 91 | void InitDefaultsSliceRequest(); |
| 92 | void InitDefaultsDynamicSliceRequestImpl(); |
| 93 | void InitDefaultsDynamicSliceRequest(); |
| 94 | void InitDefaultsDynamicUpdateSliceRequestImpl(); |
| 95 | void InitDefaultsDynamicUpdateSliceRequest(); |
| 96 | void InitDefaultsConvolutionDimensionNumbersImpl(); |
| 97 | void InitDefaultsConvolutionDimensionNumbers(); |
| 98 | void InitDefaultsConvolveRequestImpl(); |
| 99 | void InitDefaultsConvolveRequest(); |
| 100 | void InitDefaultsFftRequestImpl(); |
| 101 | void InitDefaultsFftRequest(); |
| 102 | void InitDefaultsInfeedRequestImpl(); |
| 103 | void InitDefaultsInfeedRequest(); |
| 104 | void InitDefaultsOutfeedRequestImpl(); |
| 105 | void InitDefaultsOutfeedRequest(); |
| 106 | void InitDefaultsCallRequestImpl(); |
| 107 | void InitDefaultsCallRequest(); |
| 108 | void InitDefaultsCustomCallRequestImpl(); |
| 109 | void InitDefaultsCustomCallRequest(); |
| 110 | void InitDefaultsHostComputeRequestImpl(); |
| 111 | void InitDefaultsHostComputeRequest(); |
| 112 | void InitDefaultsDotDimensionNumbersImpl(); |
| 113 | void InitDefaultsDotDimensionNumbers(); |
| 114 | void InitDefaultsDotRequestImpl(); |
| 115 | void InitDefaultsDotRequest(); |
| 116 | void InitDefaultsMapRequestImpl(); |
| 117 | void InitDefaultsMapRequest(); |
| 118 | void InitDefaultsReduceRequestImpl(); |
| 119 | void InitDefaultsReduceRequest(); |
| 120 | void InitDefaultsReduceWindowRequestImpl(); |
| 121 | void InitDefaultsReduceWindowRequest(); |
| 122 | void InitDefaultsBatchNormTrainingRequestImpl(); |
| 123 | void InitDefaultsBatchNormTrainingRequest(); |
| 124 | void InitDefaultsBatchNormInferenceRequestImpl(); |
| 125 | void InitDefaultsBatchNormInferenceRequest(); |
| 126 | void InitDefaultsBatchNormGradRequestImpl(); |
| 127 | void InitDefaultsBatchNormGradRequest(); |
| 128 | void InitDefaultsCrossReplicaSumRequestImpl(); |
| 129 | void InitDefaultsCrossReplicaSumRequest(); |
| 130 | void InitDefaultsSelectAndScatterRequestImpl(); |
| 131 | void InitDefaultsSelectAndScatterRequest(); |
| 132 | void InitDefaultsReverseRequestImpl(); |
| 133 | void InitDefaultsReverseRequest(); |
| 134 | void InitDefaultsBroadcastRequestImpl(); |
| 135 | void InitDefaultsBroadcastRequest(); |
| 136 | void InitDefaultsPadRequestImpl(); |
| 137 | void InitDefaultsPadRequest(); |
| 138 | void InitDefaultsReshapeRequestImpl(); |
| 139 | void InitDefaultsReshapeRequest(); |
| 140 | void InitDefaultsTransposeRequestImpl(); |
| 141 | void InitDefaultsTransposeRequest(); |
| 142 | void InitDefaultsParameterRequestImpl(); |
| 143 | void InitDefaultsParameterRequest(); |
| 144 | void InitDefaultsGetLocalShapeRequestImpl(); |
| 145 | void InitDefaultsGetLocalShapeRequest(); |
| 146 | void InitDefaultsGetLocalShapeResponseImpl(); |
| 147 | void InitDefaultsGetLocalShapeResponse(); |
| 148 | void InitDefaultsTraceRequestImpl(); |
| 149 | void InitDefaultsTraceRequest(); |
| 150 | void InitDefaultsConvertRequestImpl(); |
| 151 | void InitDefaultsConvertRequest(); |
| 152 | void InitDefaultsConcatenateRequestImpl(); |
| 153 | void InitDefaultsConcatenateRequest(); |
| 154 | void InitDefaultsConditionalRequestImpl(); |
| 155 | void InitDefaultsConditionalRequest(); |
| 156 | void InitDefaultsWhileRequestImpl(); |
| 157 | void InitDefaultsWhileRequest(); |
| 158 | void InitDefaultsUnaryOpRequestImpl(); |
| 159 | void InitDefaultsUnaryOpRequest(); |
| 160 | void InitDefaultsBinaryOpRequestImpl(); |
| 161 | void InitDefaultsBinaryOpRequest(); |
| 162 | void InitDefaultsRngRequestImpl(); |
| 163 | void InitDefaultsRngRequest(); |
| 164 | void InitDefaultsTernaryOpRequestImpl(); |
| 165 | void InitDefaultsTernaryOpRequest(); |
| 166 | void InitDefaultsVariadicOpRequestImpl(); |
| 167 | void InitDefaultsVariadicOpRequest(); |
| 168 | void InitDefaultsReducePrecisionRequestImpl(); |
| 169 | void InitDefaultsReducePrecisionRequest(); |
| 170 | void InitDefaultsSendRequestImpl(); |
| 171 | void InitDefaultsSendRequest(); |
| 172 | void InitDefaultsRecvRequestImpl(); |
| 173 | void InitDefaultsRecvRequest(); |
| 174 | void InitDefaultsGatherRequestImpl(); |
| 175 | void InitDefaultsGatherRequest(); |
| 176 | void InitDefaultsOpShardingImpl(); |
| 177 | void InitDefaultsOpSharding(); |
| 178 | void InitDefaultsOpRequestImpl(); |
| 179 | void InitDefaultsOpRequest(); |
| 180 | void InitDefaultsOpResponseImpl(); |
| 181 | void InitDefaultsOpResponse(); |
| 182 | inline void InitDefaults() { |
| 183 | InitDefaultsPaddingConfig_PaddingConfigDimension(); |
| 184 | InitDefaultsPaddingConfig(); |
| 185 | InitDefaultsLayout(); |
| 186 | InitDefaultsShape(); |
| 187 | InitDefaultsProgramShape(); |
| 188 | InitDefaultsComputationStats(); |
| 189 | InitDefaultsOpMetadata(); |
| 190 | InitDefaultsExecutionProfile(); |
| 191 | InitDefaultsComputationHandle(); |
| 192 | InitDefaultsExecutionHandle(); |
| 193 | InitDefaultsGlobalDataHandle(); |
| 194 | InitDefaultsComputationDataHandle(); |
| 195 | InitDefaultsDeviceHandle(); |
| 196 | InitDefaultsChannelHandle(); |
| 197 | InitDefaultsDeviceAssignmentProto_ComputationDevice(); |
| 198 | InitDefaultsDeviceAssignmentProto(); |
| 199 | InitDefaultsLiteralProto(); |
| 200 | InitDefaultsWindowDimension(); |
| 201 | InitDefaultsWindow(); |
| 202 | InitDefaultsGatherDimensionNumbers(); |
| 203 | InitDefaultsConstantRequest(); |
| 204 | InitDefaultsGetTupleElementRequest(); |
| 205 | InitDefaultsSliceRequest(); |
| 206 | InitDefaultsDynamicSliceRequest(); |
| 207 | InitDefaultsDynamicUpdateSliceRequest(); |
| 208 | InitDefaultsConvolutionDimensionNumbers(); |
| 209 | InitDefaultsConvolveRequest(); |
| 210 | InitDefaultsFftRequest(); |
| 211 | InitDefaultsInfeedRequest(); |
| 212 | InitDefaultsOutfeedRequest(); |
| 213 | InitDefaultsCallRequest(); |
| 214 | InitDefaultsCustomCallRequest(); |
| 215 | InitDefaultsHostComputeRequest(); |
| 216 | InitDefaultsDotDimensionNumbers(); |
| 217 | InitDefaultsDotRequest(); |
| 218 | InitDefaultsMapRequest(); |
| 219 | InitDefaultsReduceRequest(); |
| 220 | InitDefaultsReduceWindowRequest(); |
| 221 | InitDefaultsBatchNormTrainingRequest(); |
| 222 | InitDefaultsBatchNormInferenceRequest(); |
| 223 | InitDefaultsBatchNormGradRequest(); |
| 224 | InitDefaultsCrossReplicaSumRequest(); |
| 225 | InitDefaultsSelectAndScatterRequest(); |
| 226 | InitDefaultsReverseRequest(); |
| 227 | InitDefaultsBroadcastRequest(); |
| 228 | InitDefaultsPadRequest(); |
| 229 | InitDefaultsReshapeRequest(); |
| 230 | InitDefaultsTransposeRequest(); |
| 231 | InitDefaultsParameterRequest(); |
| 232 | InitDefaultsGetLocalShapeRequest(); |
| 233 | InitDefaultsGetLocalShapeResponse(); |
| 234 | InitDefaultsTraceRequest(); |
| 235 | InitDefaultsConvertRequest(); |
| 236 | InitDefaultsConcatenateRequest(); |
| 237 | InitDefaultsConditionalRequest(); |
| 238 | InitDefaultsWhileRequest(); |
| 239 | InitDefaultsUnaryOpRequest(); |
| 240 | InitDefaultsBinaryOpRequest(); |
| 241 | InitDefaultsRngRequest(); |
| 242 | InitDefaultsTernaryOpRequest(); |
| 243 | InitDefaultsVariadicOpRequest(); |
| 244 | InitDefaultsReducePrecisionRequest(); |
| 245 | InitDefaultsSendRequest(); |
| 246 | InitDefaultsRecvRequest(); |
| 247 | InitDefaultsGatherRequest(); |
| 248 | InitDefaultsOpSharding(); |
| 249 | InitDefaultsOpRequest(); |
| 250 | InitDefaultsOpResponse(); |
| 251 | } |
| 252 | } // namespace protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto |
| 253 | namespace xla { |
| 254 | class BatchNormGradRequest; |
| 255 | class BatchNormGradRequestDefaultTypeInternal; |
| 256 | extern BatchNormGradRequestDefaultTypeInternal _BatchNormGradRequest_default_instance_; |
| 257 | class BatchNormInferenceRequest; |
| 258 | class BatchNormInferenceRequestDefaultTypeInternal; |
| 259 | extern BatchNormInferenceRequestDefaultTypeInternal _BatchNormInferenceRequest_default_instance_; |
| 260 | class BatchNormTrainingRequest; |
| 261 | class BatchNormTrainingRequestDefaultTypeInternal; |
| 262 | extern BatchNormTrainingRequestDefaultTypeInternal _BatchNormTrainingRequest_default_instance_; |
| 263 | class BinaryOpRequest; |
| 264 | class BinaryOpRequestDefaultTypeInternal; |
| 265 | extern BinaryOpRequestDefaultTypeInternal _BinaryOpRequest_default_instance_; |
| 266 | class BroadcastRequest; |
| 267 | class BroadcastRequestDefaultTypeInternal; |
| 268 | extern BroadcastRequestDefaultTypeInternal _BroadcastRequest_default_instance_; |
| 269 | class CallRequest; |
| 270 | class CallRequestDefaultTypeInternal; |
| 271 | extern CallRequestDefaultTypeInternal _CallRequest_default_instance_; |
| 272 | class ChannelHandle; |
| 273 | class ChannelHandleDefaultTypeInternal; |
| 274 | extern ChannelHandleDefaultTypeInternal _ChannelHandle_default_instance_; |
| 275 | class ComputationDataHandle; |
| 276 | class ComputationDataHandleDefaultTypeInternal; |
| 277 | extern ComputationDataHandleDefaultTypeInternal _ComputationDataHandle_default_instance_; |
| 278 | class ComputationHandle; |
| 279 | class ComputationHandleDefaultTypeInternal; |
| 280 | extern ComputationHandleDefaultTypeInternal _ComputationHandle_default_instance_; |
| 281 | class ComputationStats; |
| 282 | class ComputationStatsDefaultTypeInternal; |
| 283 | extern ComputationStatsDefaultTypeInternal _ComputationStats_default_instance_; |
| 284 | class ConcatenateRequest; |
| 285 | class ConcatenateRequestDefaultTypeInternal; |
| 286 | extern ConcatenateRequestDefaultTypeInternal _ConcatenateRequest_default_instance_; |
| 287 | class ConditionalRequest; |
| 288 | class ConditionalRequestDefaultTypeInternal; |
| 289 | extern ConditionalRequestDefaultTypeInternal _ConditionalRequest_default_instance_; |
| 290 | class ConstantRequest; |
| 291 | class ConstantRequestDefaultTypeInternal; |
| 292 | extern ConstantRequestDefaultTypeInternal _ConstantRequest_default_instance_; |
| 293 | class ConvertRequest; |
| 294 | class ConvertRequestDefaultTypeInternal; |
| 295 | extern ConvertRequestDefaultTypeInternal _ConvertRequest_default_instance_; |
| 296 | class ConvolutionDimensionNumbers; |
| 297 | class ConvolutionDimensionNumbersDefaultTypeInternal; |
| 298 | extern ConvolutionDimensionNumbersDefaultTypeInternal _ConvolutionDimensionNumbers_default_instance_; |
| 299 | class ConvolveRequest; |
| 300 | class ConvolveRequestDefaultTypeInternal; |
| 301 | extern ConvolveRequestDefaultTypeInternal _ConvolveRequest_default_instance_; |
| 302 | class CrossReplicaSumRequest; |
| 303 | class CrossReplicaSumRequestDefaultTypeInternal; |
| 304 | extern CrossReplicaSumRequestDefaultTypeInternal _CrossReplicaSumRequest_default_instance_; |
| 305 | class CustomCallRequest; |
| 306 | class CustomCallRequestDefaultTypeInternal; |
| 307 | extern CustomCallRequestDefaultTypeInternal _CustomCallRequest_default_instance_; |
| 308 | class DeviceAssignmentProto; |
| 309 | class DeviceAssignmentProtoDefaultTypeInternal; |
| 310 | extern DeviceAssignmentProtoDefaultTypeInternal _DeviceAssignmentProto_default_instance_; |
| 311 | class DeviceAssignmentProto_ComputationDevice; |
| 312 | class DeviceAssignmentProto_ComputationDeviceDefaultTypeInternal; |
| 313 | extern DeviceAssignmentProto_ComputationDeviceDefaultTypeInternal _DeviceAssignmentProto_ComputationDevice_default_instance_; |
| 314 | class DeviceHandle; |
| 315 | class DeviceHandleDefaultTypeInternal; |
| 316 | extern DeviceHandleDefaultTypeInternal _DeviceHandle_default_instance_; |
| 317 | class DotDimensionNumbers; |
| 318 | class DotDimensionNumbersDefaultTypeInternal; |
| 319 | extern DotDimensionNumbersDefaultTypeInternal _DotDimensionNumbers_default_instance_; |
| 320 | class DotRequest; |
| 321 | class DotRequestDefaultTypeInternal; |
| 322 | extern DotRequestDefaultTypeInternal _DotRequest_default_instance_; |
| 323 | class DynamicSliceRequest; |
| 324 | class DynamicSliceRequestDefaultTypeInternal; |
| 325 | extern DynamicSliceRequestDefaultTypeInternal _DynamicSliceRequest_default_instance_; |
| 326 | class DynamicUpdateSliceRequest; |
| 327 | class DynamicUpdateSliceRequestDefaultTypeInternal; |
| 328 | extern DynamicUpdateSliceRequestDefaultTypeInternal _DynamicUpdateSliceRequest_default_instance_; |
| 329 | class ExecutionHandle; |
| 330 | class ExecutionHandleDefaultTypeInternal; |
| 331 | extern ExecutionHandleDefaultTypeInternal _ExecutionHandle_default_instance_; |
| 332 | class ExecutionProfile; |
| 333 | class ExecutionProfileDefaultTypeInternal; |
| 334 | extern ExecutionProfileDefaultTypeInternal _ExecutionProfile_default_instance_; |
| 335 | class FftRequest; |
| 336 | class FftRequestDefaultTypeInternal; |
| 337 | extern FftRequestDefaultTypeInternal _FftRequest_default_instance_; |
| 338 | class GatherDimensionNumbers; |
| 339 | class GatherDimensionNumbersDefaultTypeInternal; |
| 340 | extern GatherDimensionNumbersDefaultTypeInternal _GatherDimensionNumbers_default_instance_; |
| 341 | class GatherRequest; |
| 342 | class GatherRequestDefaultTypeInternal; |
| 343 | extern GatherRequestDefaultTypeInternal _GatherRequest_default_instance_; |
| 344 | class GetLocalShapeRequest; |
| 345 | class GetLocalShapeRequestDefaultTypeInternal; |
| 346 | extern GetLocalShapeRequestDefaultTypeInternal _GetLocalShapeRequest_default_instance_; |
| 347 | class GetLocalShapeResponse; |
| 348 | class GetLocalShapeResponseDefaultTypeInternal; |
| 349 | extern GetLocalShapeResponseDefaultTypeInternal _GetLocalShapeResponse_default_instance_; |
| 350 | class GetTupleElementRequest; |
| 351 | class GetTupleElementRequestDefaultTypeInternal; |
| 352 | extern GetTupleElementRequestDefaultTypeInternal _GetTupleElementRequest_default_instance_; |
| 353 | class GlobalDataHandle; |
| 354 | class GlobalDataHandleDefaultTypeInternal; |
| 355 | extern GlobalDataHandleDefaultTypeInternal _GlobalDataHandle_default_instance_; |
| 356 | class HostComputeRequest; |
| 357 | class HostComputeRequestDefaultTypeInternal; |
| 358 | extern HostComputeRequestDefaultTypeInternal _HostComputeRequest_default_instance_; |
| 359 | class InfeedRequest; |
| 360 | class InfeedRequestDefaultTypeInternal; |
| 361 | extern InfeedRequestDefaultTypeInternal _InfeedRequest_default_instance_; |
| 362 | class Layout; |
| 363 | class LayoutDefaultTypeInternal; |
| 364 | extern LayoutDefaultTypeInternal _Layout_default_instance_; |
| 365 | class LiteralProto; |
| 366 | class LiteralProtoDefaultTypeInternal; |
| 367 | extern LiteralProtoDefaultTypeInternal _LiteralProto_default_instance_; |
| 368 | class MapRequest; |
| 369 | class MapRequestDefaultTypeInternal; |
| 370 | extern MapRequestDefaultTypeInternal _MapRequest_default_instance_; |
| 371 | class OpMetadata; |
| 372 | class OpMetadataDefaultTypeInternal; |
| 373 | extern OpMetadataDefaultTypeInternal _OpMetadata_default_instance_; |
| 374 | class OpRequest; |
| 375 | class OpRequestDefaultTypeInternal; |
| 376 | extern OpRequestDefaultTypeInternal _OpRequest_default_instance_; |
| 377 | class OpResponse; |
| 378 | class OpResponseDefaultTypeInternal; |
| 379 | extern OpResponseDefaultTypeInternal _OpResponse_default_instance_; |
| 380 | class OpSharding; |
| 381 | class OpShardingDefaultTypeInternal; |
| 382 | extern OpShardingDefaultTypeInternal _OpSharding_default_instance_; |
| 383 | class OutfeedRequest; |
| 384 | class OutfeedRequestDefaultTypeInternal; |
| 385 | extern OutfeedRequestDefaultTypeInternal _OutfeedRequest_default_instance_; |
| 386 | class PadRequest; |
| 387 | class PadRequestDefaultTypeInternal; |
| 388 | extern PadRequestDefaultTypeInternal _PadRequest_default_instance_; |
| 389 | class PaddingConfig; |
| 390 | class PaddingConfigDefaultTypeInternal; |
| 391 | extern PaddingConfigDefaultTypeInternal _PaddingConfig_default_instance_; |
| 392 | class PaddingConfig_PaddingConfigDimension; |
| 393 | class PaddingConfig_PaddingConfigDimensionDefaultTypeInternal; |
| 394 | extern PaddingConfig_PaddingConfigDimensionDefaultTypeInternal _PaddingConfig_PaddingConfigDimension_default_instance_; |
| 395 | class ParameterRequest; |
| 396 | class ParameterRequestDefaultTypeInternal; |
| 397 | extern ParameterRequestDefaultTypeInternal _ParameterRequest_default_instance_; |
| 398 | class ProgramShape; |
| 399 | class ProgramShapeDefaultTypeInternal; |
| 400 | extern ProgramShapeDefaultTypeInternal _ProgramShape_default_instance_; |
| 401 | class RecvRequest; |
| 402 | class RecvRequestDefaultTypeInternal; |
| 403 | extern RecvRequestDefaultTypeInternal _RecvRequest_default_instance_; |
| 404 | class ReducePrecisionRequest; |
| 405 | class ReducePrecisionRequestDefaultTypeInternal; |
| 406 | extern ReducePrecisionRequestDefaultTypeInternal _ReducePrecisionRequest_default_instance_; |
| 407 | class ReduceRequest; |
| 408 | class ReduceRequestDefaultTypeInternal; |
| 409 | extern ReduceRequestDefaultTypeInternal _ReduceRequest_default_instance_; |
| 410 | class ReduceWindowRequest; |
| 411 | class ReduceWindowRequestDefaultTypeInternal; |
| 412 | extern ReduceWindowRequestDefaultTypeInternal _ReduceWindowRequest_default_instance_; |
| 413 | class ReshapeRequest; |
| 414 | class ReshapeRequestDefaultTypeInternal; |
| 415 | extern ReshapeRequestDefaultTypeInternal _ReshapeRequest_default_instance_; |
| 416 | class ReverseRequest; |
| 417 | class ReverseRequestDefaultTypeInternal; |
| 418 | extern ReverseRequestDefaultTypeInternal _ReverseRequest_default_instance_; |
| 419 | class RngRequest; |
| 420 | class RngRequestDefaultTypeInternal; |
| 421 | extern RngRequestDefaultTypeInternal _RngRequest_default_instance_; |
| 422 | class SelectAndScatterRequest; |
| 423 | class SelectAndScatterRequestDefaultTypeInternal; |
| 424 | extern SelectAndScatterRequestDefaultTypeInternal _SelectAndScatterRequest_default_instance_; |
| 425 | class SendRequest; |
| 426 | class SendRequestDefaultTypeInternal; |
| 427 | extern SendRequestDefaultTypeInternal _SendRequest_default_instance_; |
| 428 | class Shape; |
| 429 | class ShapeDefaultTypeInternal; |
| 430 | extern ShapeDefaultTypeInternal _Shape_default_instance_; |
| 431 | class SliceRequest; |
| 432 | class SliceRequestDefaultTypeInternal; |
| 433 | extern SliceRequestDefaultTypeInternal _SliceRequest_default_instance_; |
| 434 | class TernaryOpRequest; |
| 435 | class TernaryOpRequestDefaultTypeInternal; |
| 436 | extern TernaryOpRequestDefaultTypeInternal _TernaryOpRequest_default_instance_; |
| 437 | class TraceRequest; |
| 438 | class TraceRequestDefaultTypeInternal; |
| 439 | extern TraceRequestDefaultTypeInternal _TraceRequest_default_instance_; |
| 440 | class TransposeRequest; |
| 441 | class TransposeRequestDefaultTypeInternal; |
| 442 | extern TransposeRequestDefaultTypeInternal _TransposeRequest_default_instance_; |
| 443 | class UnaryOpRequest; |
| 444 | class UnaryOpRequestDefaultTypeInternal; |
| 445 | extern UnaryOpRequestDefaultTypeInternal _UnaryOpRequest_default_instance_; |
| 446 | class VariadicOpRequest; |
| 447 | class VariadicOpRequestDefaultTypeInternal; |
| 448 | extern VariadicOpRequestDefaultTypeInternal _VariadicOpRequest_default_instance_; |
| 449 | class WhileRequest; |
| 450 | class WhileRequestDefaultTypeInternal; |
| 451 | extern WhileRequestDefaultTypeInternal _WhileRequest_default_instance_; |
| 452 | class Window; |
| 453 | class WindowDefaultTypeInternal; |
| 454 | extern WindowDefaultTypeInternal _Window_default_instance_; |
| 455 | class WindowDimension; |
| 456 | class WindowDimensionDefaultTypeInternal; |
| 457 | extern WindowDimensionDefaultTypeInternal _WindowDimension_default_instance_; |
| 458 | } // namespace xla |
| 459 | namespace google { |
| 460 | namespace protobuf { |
| 461 | template<> ::xla::BatchNormGradRequest* Arena::CreateMessage< ::xla::BatchNormGradRequest>(Arena*); |
| 462 | template<> ::xla::BatchNormInferenceRequest* Arena::CreateMessage< ::xla::BatchNormInferenceRequest>(Arena*); |
| 463 | template<> ::xla::BatchNormTrainingRequest* Arena::CreateMessage< ::xla::BatchNormTrainingRequest>(Arena*); |
| 464 | template<> ::xla::BinaryOpRequest* Arena::CreateMessage< ::xla::BinaryOpRequest>(Arena*); |
| 465 | template<> ::xla::BroadcastRequest* Arena::CreateMessage< ::xla::BroadcastRequest>(Arena*); |
| 466 | template<> ::xla::CallRequest* Arena::CreateMessage< ::xla::CallRequest>(Arena*); |
| 467 | template<> ::xla::ChannelHandle* Arena::CreateMessage< ::xla::ChannelHandle>(Arena*); |
| 468 | template<> ::xla::ComputationDataHandle* Arena::CreateMessage< ::xla::ComputationDataHandle>(Arena*); |
| 469 | template<> ::xla::ComputationHandle* Arena::CreateMessage< ::xla::ComputationHandle>(Arena*); |
| 470 | template<> ::xla::ComputationStats* Arena::CreateMessage< ::xla::ComputationStats>(Arena*); |
| 471 | template<> ::xla::ConcatenateRequest* Arena::CreateMessage< ::xla::ConcatenateRequest>(Arena*); |
| 472 | template<> ::xla::ConditionalRequest* Arena::CreateMessage< ::xla::ConditionalRequest>(Arena*); |
| 473 | template<> ::xla::ConstantRequest* Arena::CreateMessage< ::xla::ConstantRequest>(Arena*); |
| 474 | template<> ::xla::ConvertRequest* Arena::CreateMessage< ::xla::ConvertRequest>(Arena*); |
| 475 | template<> ::xla::ConvolutionDimensionNumbers* Arena::CreateMessage< ::xla::ConvolutionDimensionNumbers>(Arena*); |
| 476 | template<> ::xla::ConvolveRequest* Arena::CreateMessage< ::xla::ConvolveRequest>(Arena*); |
| 477 | template<> ::xla::CrossReplicaSumRequest* Arena::CreateMessage< ::xla::CrossReplicaSumRequest>(Arena*); |
| 478 | template<> ::xla::CustomCallRequest* Arena::CreateMessage< ::xla::CustomCallRequest>(Arena*); |
| 479 | template<> ::xla::DeviceAssignmentProto* Arena::CreateMessage< ::xla::DeviceAssignmentProto>(Arena*); |
| 480 | template<> ::xla::DeviceAssignmentProto_ComputationDevice* Arena::CreateMessage< ::xla::DeviceAssignmentProto_ComputationDevice>(Arena*); |
| 481 | template<> ::xla::DeviceHandle* Arena::CreateMessage< ::xla::DeviceHandle>(Arena*); |
| 482 | template<> ::xla::DotDimensionNumbers* Arena::CreateMessage< ::xla::DotDimensionNumbers>(Arena*); |
| 483 | template<> ::xla::DotRequest* Arena::CreateMessage< ::xla::DotRequest>(Arena*); |
| 484 | template<> ::xla::DynamicSliceRequest* Arena::CreateMessage< ::xla::DynamicSliceRequest>(Arena*); |
| 485 | template<> ::xla::DynamicUpdateSliceRequest* Arena::CreateMessage< ::xla::DynamicUpdateSliceRequest>(Arena*); |
| 486 | template<> ::xla::ExecutionHandle* Arena::CreateMessage< ::xla::ExecutionHandle>(Arena*); |
| 487 | template<> ::xla::ExecutionProfile* Arena::CreateMessage< ::xla::ExecutionProfile>(Arena*); |
| 488 | template<> ::xla::FftRequest* Arena::CreateMessage< ::xla::FftRequest>(Arena*); |
| 489 | template<> ::xla::GatherDimensionNumbers* Arena::CreateMessage< ::xla::GatherDimensionNumbers>(Arena*); |
| 490 | template<> ::xla::GatherRequest* Arena::CreateMessage< ::xla::GatherRequest>(Arena*); |
| 491 | template<> ::xla::GetLocalShapeRequest* Arena::CreateMessage< ::xla::GetLocalShapeRequest>(Arena*); |
| 492 | template<> ::xla::GetLocalShapeResponse* Arena::CreateMessage< ::xla::GetLocalShapeResponse>(Arena*); |
| 493 | template<> ::xla::GetTupleElementRequest* Arena::CreateMessage< ::xla::GetTupleElementRequest>(Arena*); |
| 494 | template<> ::xla::GlobalDataHandle* Arena::CreateMessage< ::xla::GlobalDataHandle>(Arena*); |
| 495 | template<> ::xla::HostComputeRequest* Arena::CreateMessage< ::xla::HostComputeRequest>(Arena*); |
| 496 | template<> ::xla::InfeedRequest* Arena::CreateMessage< ::xla::InfeedRequest>(Arena*); |
| 497 | template<> ::xla::Layout* Arena::CreateMessage< ::xla::Layout>(Arena*); |
| 498 | template<> ::xla::LiteralProto* Arena::CreateMessage< ::xla::LiteralProto>(Arena*); |
| 499 | template<> ::xla::MapRequest* Arena::CreateMessage< ::xla::MapRequest>(Arena*); |
| 500 | template<> ::xla::OpMetadata* Arena::CreateMessage< ::xla::OpMetadata>(Arena*); |
| 501 | template<> ::xla::OpRequest* Arena::CreateMessage< ::xla::OpRequest>(Arena*); |
| 502 | template<> ::xla::OpResponse* Arena::CreateMessage< ::xla::OpResponse>(Arena*); |
| 503 | template<> ::xla::OpSharding* Arena::CreateMessage< ::xla::OpSharding>(Arena*); |
| 504 | template<> ::xla::OutfeedRequest* Arena::CreateMessage< ::xla::OutfeedRequest>(Arena*); |
| 505 | template<> ::xla::PadRequest* Arena::CreateMessage< ::xla::PadRequest>(Arena*); |
| 506 | template<> ::xla::PaddingConfig* Arena::CreateMessage< ::xla::PaddingConfig>(Arena*); |
| 507 | template<> ::xla::PaddingConfig_PaddingConfigDimension* Arena::CreateMessage< ::xla::PaddingConfig_PaddingConfigDimension>(Arena*); |
| 508 | template<> ::xla::ParameterRequest* Arena::CreateMessage< ::xla::ParameterRequest>(Arena*); |
| 509 | template<> ::xla::ProgramShape* Arena::CreateMessage< ::xla::ProgramShape>(Arena*); |
| 510 | template<> ::xla::RecvRequest* Arena::CreateMessage< ::xla::RecvRequest>(Arena*); |
| 511 | template<> ::xla::ReducePrecisionRequest* Arena::CreateMessage< ::xla::ReducePrecisionRequest>(Arena*); |
| 512 | template<> ::xla::ReduceRequest* Arena::CreateMessage< ::xla::ReduceRequest>(Arena*); |
| 513 | template<> ::xla::ReduceWindowRequest* Arena::CreateMessage< ::xla::ReduceWindowRequest>(Arena*); |
| 514 | template<> ::xla::ReshapeRequest* Arena::CreateMessage< ::xla::ReshapeRequest>(Arena*); |
| 515 | template<> ::xla::ReverseRequest* Arena::CreateMessage< ::xla::ReverseRequest>(Arena*); |
| 516 | template<> ::xla::RngRequest* Arena::CreateMessage< ::xla::RngRequest>(Arena*); |
| 517 | template<> ::xla::SelectAndScatterRequest* Arena::CreateMessage< ::xla::SelectAndScatterRequest>(Arena*); |
| 518 | template<> ::xla::SendRequest* Arena::CreateMessage< ::xla::SendRequest>(Arena*); |
| 519 | template<> ::xla::Shape* Arena::CreateMessage< ::xla::Shape>(Arena*); |
| 520 | template<> ::xla::SliceRequest* Arena::CreateMessage< ::xla::SliceRequest>(Arena*); |
| 521 | template<> ::xla::TernaryOpRequest* Arena::CreateMessage< ::xla::TernaryOpRequest>(Arena*); |
| 522 | template<> ::xla::TraceRequest* Arena::CreateMessage< ::xla::TraceRequest>(Arena*); |
| 523 | template<> ::xla::TransposeRequest* Arena::CreateMessage< ::xla::TransposeRequest>(Arena*); |
| 524 | template<> ::xla::UnaryOpRequest* Arena::CreateMessage< ::xla::UnaryOpRequest>(Arena*); |
| 525 | template<> ::xla::VariadicOpRequest* Arena::CreateMessage< ::xla::VariadicOpRequest>(Arena*); |
| 526 | template<> ::xla::WhileRequest* Arena::CreateMessage< ::xla::WhileRequest>(Arena*); |
| 527 | template<> ::xla::Window* Arena::CreateMessage< ::xla::Window>(Arena*); |
| 528 | template<> ::xla::WindowDimension* Arena::CreateMessage< ::xla::WindowDimension>(Arena*); |
| 529 | } // namespace protobuf |
| 530 | } // namespace google |
| 531 | namespace xla { |
| 532 | |
| 533 | enum OpSharding_Type { |
| 534 | OpSharding_Type_REPLICATED = 0, |
| 535 | OpSharding_Type_MAXIMAL = 1, |
| 536 | OpSharding_Type_TUPLE = 2, |
| 537 | OpSharding_Type_OTHER = 3, |
| 538 | OpSharding_Type_OpSharding_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 539 | OpSharding_Type_OpSharding_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 540 | }; |
| 541 | bool OpSharding_Type_IsValid(int value); |
| 542 | const OpSharding_Type OpSharding_Type_Type_MIN = OpSharding_Type_REPLICATED; |
| 543 | const OpSharding_Type OpSharding_Type_Type_MAX = OpSharding_Type_OTHER; |
| 544 | const int OpSharding_Type_Type_ARRAYSIZE = OpSharding_Type_Type_MAX + 1; |
| 545 | |
| 546 | const ::google::protobuf::EnumDescriptor* OpSharding_Type_descriptor(); |
| 547 | inline const ::std::string& OpSharding_Type_Name(OpSharding_Type value) { |
| 548 | return ::google::protobuf::internal::NameOfEnum( |
| 549 | OpSharding_Type_descriptor(), value); |
| 550 | } |
| 551 | inline bool OpSharding_Type_Parse( |
| 552 | const ::std::string& name, OpSharding_Type* value) { |
| 553 | return ::google::protobuf::internal::ParseNamedEnum<OpSharding_Type>( |
| 554 | OpSharding_Type_descriptor(), name, value); |
| 555 | } |
| 556 | enum PrimitiveType { |
| 557 | PRIMITIVE_TYPE_INVALID = 0, |
| 558 | PRED = 1, |
| 559 | S8 = 2, |
| 560 | S16 = 3, |
| 561 | S32 = 4, |
| 562 | S64 = 5, |
| 563 | U8 = 6, |
| 564 | U16 = 7, |
| 565 | U32 = 8, |
| 566 | U64 = 9, |
| 567 | F16 = 10, |
| 568 | F32 = 11, |
| 569 | BF16 = 16, |
| 570 | F64 = 12, |
| 571 | C64 = 15, |
| 572 | TUPLE = 13, |
| 573 | OPAQUE = 14, |
| 574 | PrimitiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 575 | PrimitiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 576 | }; |
| 577 | bool PrimitiveType_IsValid(int value); |
| 578 | const PrimitiveType PrimitiveType_MIN = PRIMITIVE_TYPE_INVALID; |
| 579 | const PrimitiveType PrimitiveType_MAX = BF16; |
| 580 | const int PrimitiveType_ARRAYSIZE = PrimitiveType_MAX + 1; |
| 581 | |
| 582 | const ::google::protobuf::EnumDescriptor* PrimitiveType_descriptor(); |
| 583 | inline const ::std::string& PrimitiveType_Name(PrimitiveType value) { |
| 584 | return ::google::protobuf::internal::NameOfEnum( |
| 585 | PrimitiveType_descriptor(), value); |
| 586 | } |
| 587 | inline bool PrimitiveType_Parse( |
| 588 | const ::std::string& name, PrimitiveType* value) { |
| 589 | return ::google::protobuf::internal::ParseNamedEnum<PrimitiveType>( |
| 590 | PrimitiveType_descriptor(), name, value); |
| 591 | } |
| 592 | enum PaddingValue { |
| 593 | INVALID_PAD = 0, |
| 594 | ZERO_PAD = 1, |
| 595 | ONE_PAD = 2, |
| 596 | LOWEST_PAD = 3, |
| 597 | HIGHEST_PAD = 4, |
| 598 | UNKNOWN_PAD = 5, |
| 599 | PaddingValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 600 | PaddingValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 601 | }; |
| 602 | bool PaddingValue_IsValid(int value); |
| 603 | const PaddingValue PaddingValue_MIN = INVALID_PAD; |
| 604 | const PaddingValue PaddingValue_MAX = UNKNOWN_PAD; |
| 605 | const int PaddingValue_ARRAYSIZE = PaddingValue_MAX + 1; |
| 606 | |
| 607 | const ::google::protobuf::EnumDescriptor* PaddingValue_descriptor(); |
| 608 | inline const ::std::string& PaddingValue_Name(PaddingValue value) { |
| 609 | return ::google::protobuf::internal::NameOfEnum( |
| 610 | PaddingValue_descriptor(), value); |
| 611 | } |
| 612 | inline bool PaddingValue_Parse( |
| 613 | const ::std::string& name, PaddingValue* value) { |
| 614 | return ::google::protobuf::internal::ParseNamedEnum<PaddingValue>( |
| 615 | PaddingValue_descriptor(), name, value); |
| 616 | } |
| 617 | enum Format { |
| 618 | INVALID_FORMAT = 0, |
| 619 | DENSE = 1, |
| 620 | SPARSE = 2, |
| 621 | Format_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 622 | Format_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 623 | }; |
| 624 | bool Format_IsValid(int value); |
| 625 | const Format Format_MIN = INVALID_FORMAT; |
| 626 | const Format Format_MAX = SPARSE; |
| 627 | const int Format_ARRAYSIZE = Format_MAX + 1; |
| 628 | |
| 629 | const ::google::protobuf::EnumDescriptor* Format_descriptor(); |
| 630 | inline const ::std::string& Format_Name(Format value) { |
| 631 | return ::google::protobuf::internal::NameOfEnum( |
| 632 | Format_descriptor(), value); |
| 633 | } |
| 634 | inline bool Format_Parse( |
| 635 | const ::std::string& name, Format* value) { |
| 636 | return ::google::protobuf::internal::ParseNamedEnum<Format>( |
| 637 | Format_descriptor(), name, value); |
| 638 | } |
| 639 | enum FftType { |
| 640 | FFT = 0, |
| 641 | IFFT = 1, |
| 642 | RFFT = 2, |
| 643 | IRFFT = 3, |
| 644 | FftType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 645 | FftType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 646 | }; |
| 647 | bool FftType_IsValid(int value); |
| 648 | const FftType FftType_MIN = FFT; |
| 649 | const FftType FftType_MAX = IRFFT; |
| 650 | const int FftType_ARRAYSIZE = FftType_MAX + 1; |
| 651 | |
| 652 | const ::google::protobuf::EnumDescriptor* FftType_descriptor(); |
| 653 | inline const ::std::string& FftType_Name(FftType value) { |
| 654 | return ::google::protobuf::internal::NameOfEnum( |
| 655 | FftType_descriptor(), value); |
| 656 | } |
| 657 | inline bool FftType_Parse( |
| 658 | const ::std::string& name, FftType* value) { |
| 659 | return ::google::protobuf::internal::ParseNamedEnum<FftType>( |
| 660 | FftType_descriptor(), name, value); |
| 661 | } |
| 662 | enum UnaryOperation { |
| 663 | UNOP_INVALID = 0, |
| 664 | UNOP_NOT = 1, |
| 665 | UNOP_EXP = 2, |
| 666 | UNOP_NEGATE = 3, |
| 667 | UNOP_SORT = 4, |
| 668 | UNOP_TANH = 5, |
| 669 | UNOP_LOG = 6, |
| 670 | UNOP_FLOOR = 7, |
| 671 | UNOP_CEIL = 8, |
| 672 | UNOP_ABS = 9, |
| 673 | UNOP_SIGN = 10, |
| 674 | UNOP_IS_FINITE = 11, |
| 675 | UNOP_COS = 12, |
| 676 | UNOP_SIN = 13, |
| 677 | UNOP_ROUND_NEAREST_AFZ = 14, |
| 678 | UNOP_REAL = 15, |
| 679 | UNOP_IMAG = 16, |
| 680 | UnaryOperation_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 681 | UnaryOperation_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 682 | }; |
| 683 | bool UnaryOperation_IsValid(int value); |
| 684 | const UnaryOperation UnaryOperation_MIN = UNOP_INVALID; |
| 685 | const UnaryOperation UnaryOperation_MAX = UNOP_IMAG; |
| 686 | const int UnaryOperation_ARRAYSIZE = UnaryOperation_MAX + 1; |
| 687 | |
| 688 | const ::google::protobuf::EnumDescriptor* UnaryOperation_descriptor(); |
| 689 | inline const ::std::string& UnaryOperation_Name(UnaryOperation value) { |
| 690 | return ::google::protobuf::internal::NameOfEnum( |
| 691 | UnaryOperation_descriptor(), value); |
| 692 | } |
| 693 | inline bool UnaryOperation_Parse( |
| 694 | const ::std::string& name, UnaryOperation* value) { |
| 695 | return ::google::protobuf::internal::ParseNamedEnum<UnaryOperation>( |
| 696 | UnaryOperation_descriptor(), name, value); |
| 697 | } |
| 698 | enum BinaryOperation { |
| 699 | BINOP_INVALID = 0, |
| 700 | BINOP_ADD = 1, |
| 701 | BINOP_DIV = 2, |
| 702 | BINOP_MUL = 3, |
| 703 | BINOP_SUB = 4, |
| 704 | BINOP_EQ = 5, |
| 705 | BINOP_GE = 6, |
| 706 | BINOP_GT = 7, |
| 707 | BINOP_LE = 8, |
| 708 | BINOP_LT = 9, |
| 709 | BINOP_NE = 10, |
| 710 | BINOP_MAX = 14, |
| 711 | BINOP_MIN = 15, |
| 712 | BINOP_POW = 16, |
| 713 | BINOP_REM = 17, |
| 714 | BINOP_AND = 18, |
| 715 | BINOP_OR = 19, |
| 716 | BINOP_SHIFT_LEFT = 20, |
| 717 | BINOP_SHIFT_RIGHT_ARITHMETIC = 21, |
| 718 | BINOP_SHIFT_RIGHT_LOGICAL = 22, |
| 719 | BINOP_COMPLEX = 23, |
| 720 | BINOP_ATAN2 = 24, |
| 721 | BinaryOperation_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 722 | BinaryOperation_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 723 | }; |
| 724 | bool BinaryOperation_IsValid(int value); |
| 725 | const BinaryOperation BinaryOperation_MIN = BINOP_INVALID; |
| 726 | const BinaryOperation BinaryOperation_MAX = BINOP_ATAN2; |
| 727 | const int BinaryOperation_ARRAYSIZE = BinaryOperation_MAX + 1; |
| 728 | |
| 729 | const ::google::protobuf::EnumDescriptor* BinaryOperation_descriptor(); |
| 730 | inline const ::std::string& BinaryOperation_Name(BinaryOperation value) { |
| 731 | return ::google::protobuf::internal::NameOfEnum( |
| 732 | BinaryOperation_descriptor(), value); |
| 733 | } |
| 734 | inline bool BinaryOperation_Parse( |
| 735 | const ::std::string& name, BinaryOperation* value) { |
| 736 | return ::google::protobuf::internal::ParseNamedEnum<BinaryOperation>( |
| 737 | BinaryOperation_descriptor(), name, value); |
| 738 | } |
| 739 | enum RandomDistribution { |
| 740 | RNG_INVALID = 0, |
| 741 | RNG_UNIFORM = 1, |
| 742 | RNG_NORMAL = 2, |
| 743 | RandomDistribution_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 744 | RandomDistribution_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 745 | }; |
| 746 | bool RandomDistribution_IsValid(int value); |
| 747 | const RandomDistribution RandomDistribution_MIN = RNG_INVALID; |
| 748 | const RandomDistribution RandomDistribution_MAX = RNG_NORMAL; |
| 749 | const int RandomDistribution_ARRAYSIZE = RandomDistribution_MAX + 1; |
| 750 | |
| 751 | const ::google::protobuf::EnumDescriptor* RandomDistribution_descriptor(); |
| 752 | inline const ::std::string& RandomDistribution_Name(RandomDistribution value) { |
| 753 | return ::google::protobuf::internal::NameOfEnum( |
| 754 | RandomDistribution_descriptor(), value); |
| 755 | } |
| 756 | inline bool RandomDistribution_Parse( |
| 757 | const ::std::string& name, RandomDistribution* value) { |
| 758 | return ::google::protobuf::internal::ParseNamedEnum<RandomDistribution>( |
| 759 | RandomDistribution_descriptor(), name, value); |
| 760 | } |
| 761 | enum TernaryOperation { |
| 762 | TRIOP_INVALID = 0, |
| 763 | TRIOP_SELECT = 1, |
| 764 | TRIOP_CLAMP = 3, |
| 765 | TernaryOperation_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 766 | TernaryOperation_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 767 | }; |
| 768 | bool TernaryOperation_IsValid(int value); |
| 769 | const TernaryOperation TernaryOperation_MIN = TRIOP_INVALID; |
| 770 | const TernaryOperation TernaryOperation_MAX = TRIOP_CLAMP; |
| 771 | const int TernaryOperation_ARRAYSIZE = TernaryOperation_MAX + 1; |
| 772 | |
| 773 | const ::google::protobuf::EnumDescriptor* TernaryOperation_descriptor(); |
| 774 | inline const ::std::string& TernaryOperation_Name(TernaryOperation value) { |
| 775 | return ::google::protobuf::internal::NameOfEnum( |
| 776 | TernaryOperation_descriptor(), value); |
| 777 | } |
| 778 | inline bool TernaryOperation_Parse( |
| 779 | const ::std::string& name, TernaryOperation* value) { |
| 780 | return ::google::protobuf::internal::ParseNamedEnum<TernaryOperation>( |
| 781 | TernaryOperation_descriptor(), name, value); |
| 782 | } |
| 783 | enum VariadicOperation { |
| 784 | VAROP_INVALID = 0, |
| 785 | VAROP_TUPLE = 1, |
| 786 | VariadicOperation_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, |
| 787 | VariadicOperation_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max |
| 788 | }; |
| 789 | bool VariadicOperation_IsValid(int value); |
| 790 | const VariadicOperation VariadicOperation_MIN = VAROP_INVALID; |
| 791 | const VariadicOperation VariadicOperation_MAX = VAROP_TUPLE; |
| 792 | const int VariadicOperation_ARRAYSIZE = VariadicOperation_MAX + 1; |
| 793 | |
| 794 | const ::google::protobuf::EnumDescriptor* VariadicOperation_descriptor(); |
| 795 | inline const ::std::string& VariadicOperation_Name(VariadicOperation value) { |
| 796 | return ::google::protobuf::internal::NameOfEnum( |
| 797 | VariadicOperation_descriptor(), value); |
| 798 | } |
| 799 | inline bool VariadicOperation_Parse( |
| 800 | const ::std::string& name, VariadicOperation* value) { |
| 801 | return ::google::protobuf::internal::ParseNamedEnum<VariadicOperation>( |
| 802 | VariadicOperation_descriptor(), name, value); |
| 803 | } |
| 804 | // =================================================================== |
| 805 | |
| 806 | class PaddingConfig_PaddingConfigDimension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.PaddingConfig.PaddingConfigDimension) */ { |
| 807 | public: |
| 808 | PaddingConfig_PaddingConfigDimension(); |
| 809 | virtual ~PaddingConfig_PaddingConfigDimension(); |
| 810 | |
| 811 | PaddingConfig_PaddingConfigDimension(const PaddingConfig_PaddingConfigDimension& from); |
| 812 | |
| 813 | inline PaddingConfig_PaddingConfigDimension& operator=(const PaddingConfig_PaddingConfigDimension& from) { |
| 814 | CopyFrom(from); |
| 815 | return *this; |
| 816 | } |
| 817 | #if LANG_CXX11 |
| 818 | PaddingConfig_PaddingConfigDimension(PaddingConfig_PaddingConfigDimension&& from) noexcept |
| 819 | : PaddingConfig_PaddingConfigDimension() { |
| 820 | *this = ::std::move(from); |
| 821 | } |
| 822 | |
| 823 | inline PaddingConfig_PaddingConfigDimension& operator=(PaddingConfig_PaddingConfigDimension&& from) noexcept { |
| 824 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 825 | if (this != &from) InternalSwap(&from); |
| 826 | } else { |
| 827 | CopyFrom(from); |
| 828 | } |
| 829 | return *this; |
| 830 | } |
| 831 | #endif |
| 832 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 833 | return GetArenaNoVirtual(); |
| 834 | } |
| 835 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 836 | return MaybeArenaPtr(); |
| 837 | } |
| 838 | static const ::google::protobuf::Descriptor* descriptor(); |
| 839 | static const PaddingConfig_PaddingConfigDimension& default_instance(); |
| 840 | |
| 841 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 842 | static inline const PaddingConfig_PaddingConfigDimension* internal_default_instance() { |
| 843 | return reinterpret_cast<const PaddingConfig_PaddingConfigDimension*>( |
| 844 | &_PaddingConfig_PaddingConfigDimension_default_instance_); |
| 845 | } |
| 846 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 847 | 0; |
| 848 | |
| 849 | void UnsafeArenaSwap(PaddingConfig_PaddingConfigDimension* other); |
| 850 | void Swap(PaddingConfig_PaddingConfigDimension* other); |
| 851 | friend void swap(PaddingConfig_PaddingConfigDimension& a, PaddingConfig_PaddingConfigDimension& b) { |
| 852 | a.Swap(&b); |
| 853 | } |
| 854 | |
| 855 | // implements Message ---------------------------------------------- |
| 856 | |
| 857 | inline PaddingConfig_PaddingConfigDimension* New() const PROTOBUF_FINAL { |
| 858 | return ::google::protobuf::Arena::CreateMessage<PaddingConfig_PaddingConfigDimension>(NULL); |
| 859 | } |
| 860 | |
| 861 | PaddingConfig_PaddingConfigDimension* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 862 | return ::google::protobuf::Arena::CreateMessage<PaddingConfig_PaddingConfigDimension>(arena); |
| 863 | } |
| 864 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 865 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 866 | void CopyFrom(const PaddingConfig_PaddingConfigDimension& from); |
| 867 | void MergeFrom(const PaddingConfig_PaddingConfigDimension& from); |
| 868 | void Clear() PROTOBUF_FINAL; |
| 869 | bool IsInitialized() const PROTOBUF_FINAL; |
| 870 | |
| 871 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 872 | bool MergePartialFromCodedStream( |
| 873 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 874 | void SerializeWithCachedSizes( |
| 875 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 876 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 877 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 878 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 879 | private: |
| 880 | void SharedCtor(); |
| 881 | void SharedDtor(); |
| 882 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 883 | void InternalSwap(PaddingConfig_PaddingConfigDimension* other); |
| 884 | protected: |
| 885 | explicit PaddingConfig_PaddingConfigDimension(::google::protobuf::Arena* arena); |
| 886 | private: |
| 887 | static void ArenaDtor(void* object); |
| 888 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 889 | private: |
| 890 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 891 | return _internal_metadata_.arena(); |
| 892 | } |
| 893 | inline void* MaybeArenaPtr() const { |
| 894 | return _internal_metadata_.raw_arena_ptr(); |
| 895 | } |
| 896 | public: |
| 897 | |
| 898 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 899 | |
| 900 | // nested types ---------------------------------------------------- |
| 901 | |
| 902 | // accessors ------------------------------------------------------- |
| 903 | |
| 904 | // int64 edge_padding_low = 1; |
| 905 | void clear_edge_padding_low(); |
| 906 | static const int kEdgePaddingLowFieldNumber = 1; |
| 907 | ::google::protobuf::int64 edge_padding_low() const; |
| 908 | void set_edge_padding_low(::google::protobuf::int64 value); |
| 909 | |
| 910 | // int64 edge_padding_high = 2; |
| 911 | void clear_edge_padding_high(); |
| 912 | static const int kEdgePaddingHighFieldNumber = 2; |
| 913 | ::google::protobuf::int64 edge_padding_high() const; |
| 914 | void set_edge_padding_high(::google::protobuf::int64 value); |
| 915 | |
| 916 | // int64 interior_padding = 3; |
| 917 | void clear_interior_padding(); |
| 918 | static const int kInteriorPaddingFieldNumber = 3; |
| 919 | ::google::protobuf::int64 interior_padding() const; |
| 920 | void set_interior_padding(::google::protobuf::int64 value); |
| 921 | |
| 922 | // @@protoc_insertion_point(class_scope:xla.PaddingConfig.PaddingConfigDimension) |
| 923 | private: |
| 924 | |
| 925 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 926 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 927 | typedef void InternalArenaConstructable_; |
| 928 | typedef void DestructorSkippable_; |
| 929 | ::google::protobuf::int64 edge_padding_low_; |
| 930 | ::google::protobuf::int64 edge_padding_high_; |
| 931 | ::google::protobuf::int64 interior_padding_; |
| 932 | mutable int _cached_size_; |
| 933 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 934 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsPaddingConfig_PaddingConfigDimensionImpl(); |
| 935 | }; |
| 936 | // ------------------------------------------------------------------- |
| 937 | |
| 938 | class PaddingConfig : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.PaddingConfig) */ { |
| 939 | public: |
| 940 | PaddingConfig(); |
| 941 | virtual ~PaddingConfig(); |
| 942 | |
| 943 | PaddingConfig(const PaddingConfig& from); |
| 944 | |
| 945 | inline PaddingConfig& operator=(const PaddingConfig& from) { |
| 946 | CopyFrom(from); |
| 947 | return *this; |
| 948 | } |
| 949 | #if LANG_CXX11 |
| 950 | PaddingConfig(PaddingConfig&& from) noexcept |
| 951 | : PaddingConfig() { |
| 952 | *this = ::std::move(from); |
| 953 | } |
| 954 | |
| 955 | inline PaddingConfig& operator=(PaddingConfig&& from) noexcept { |
| 956 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 957 | if (this != &from) InternalSwap(&from); |
| 958 | } else { |
| 959 | CopyFrom(from); |
| 960 | } |
| 961 | return *this; |
| 962 | } |
| 963 | #endif |
| 964 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 965 | return GetArenaNoVirtual(); |
| 966 | } |
| 967 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 968 | return MaybeArenaPtr(); |
| 969 | } |
| 970 | static const ::google::protobuf::Descriptor* descriptor(); |
| 971 | static const PaddingConfig& default_instance(); |
| 972 | |
| 973 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 974 | static inline const PaddingConfig* internal_default_instance() { |
| 975 | return reinterpret_cast<const PaddingConfig*>( |
| 976 | &_PaddingConfig_default_instance_); |
| 977 | } |
| 978 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 979 | 1; |
| 980 | |
| 981 | void UnsafeArenaSwap(PaddingConfig* other); |
| 982 | void Swap(PaddingConfig* other); |
| 983 | friend void swap(PaddingConfig& a, PaddingConfig& b) { |
| 984 | a.Swap(&b); |
| 985 | } |
| 986 | |
| 987 | // implements Message ---------------------------------------------- |
| 988 | |
| 989 | inline PaddingConfig* New() const PROTOBUF_FINAL { |
| 990 | return ::google::protobuf::Arena::CreateMessage<PaddingConfig>(NULL); |
| 991 | } |
| 992 | |
| 993 | PaddingConfig* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 994 | return ::google::protobuf::Arena::CreateMessage<PaddingConfig>(arena); |
| 995 | } |
| 996 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 997 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 998 | void CopyFrom(const PaddingConfig& from); |
| 999 | void MergeFrom(const PaddingConfig& from); |
| 1000 | void Clear() PROTOBUF_FINAL; |
| 1001 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1002 | |
| 1003 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1004 | bool MergePartialFromCodedStream( |
| 1005 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1006 | void SerializeWithCachedSizes( |
| 1007 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1008 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1009 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1010 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1011 | private: |
| 1012 | void SharedCtor(); |
| 1013 | void SharedDtor(); |
| 1014 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1015 | void InternalSwap(PaddingConfig* other); |
| 1016 | protected: |
| 1017 | explicit PaddingConfig(::google::protobuf::Arena* arena); |
| 1018 | private: |
| 1019 | static void ArenaDtor(void* object); |
| 1020 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1021 | private: |
| 1022 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1023 | return _internal_metadata_.arena(); |
| 1024 | } |
| 1025 | inline void* MaybeArenaPtr() const { |
| 1026 | return _internal_metadata_.raw_arena_ptr(); |
| 1027 | } |
| 1028 | public: |
| 1029 | |
| 1030 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1031 | |
| 1032 | // nested types ---------------------------------------------------- |
| 1033 | |
| 1034 | typedef PaddingConfig_PaddingConfigDimension PaddingConfigDimension; |
| 1035 | |
| 1036 | // accessors ------------------------------------------------------- |
| 1037 | |
| 1038 | // repeated .xla.PaddingConfig.PaddingConfigDimension dimensions = 1; |
| 1039 | int dimensions_size() const; |
| 1040 | void clear_dimensions(); |
| 1041 | static const int kDimensionsFieldNumber = 1; |
| 1042 | ::xla::PaddingConfig_PaddingConfigDimension* mutable_dimensions(int index); |
| 1043 | ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >* |
| 1044 | mutable_dimensions(); |
| 1045 | const ::xla::PaddingConfig_PaddingConfigDimension& dimensions(int index) const; |
| 1046 | ::xla::PaddingConfig_PaddingConfigDimension* add_dimensions(); |
| 1047 | const ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >& |
| 1048 | dimensions() const; |
| 1049 | |
| 1050 | // @@protoc_insertion_point(class_scope:xla.PaddingConfig) |
| 1051 | private: |
| 1052 | |
| 1053 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1054 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1055 | typedef void InternalArenaConstructable_; |
| 1056 | typedef void DestructorSkippable_; |
| 1057 | ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension > dimensions_; |
| 1058 | mutable int _cached_size_; |
| 1059 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1060 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsPaddingConfigImpl(); |
| 1061 | }; |
| 1062 | // ------------------------------------------------------------------- |
| 1063 | |
| 1064 | class Layout : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.Layout) */ { |
| 1065 | public: |
| 1066 | Layout(); |
| 1067 | virtual ~Layout(); |
| 1068 | |
| 1069 | Layout(const Layout& from); |
| 1070 | |
| 1071 | inline Layout& operator=(const Layout& from) { |
| 1072 | CopyFrom(from); |
| 1073 | return *this; |
| 1074 | } |
| 1075 | #if LANG_CXX11 |
| 1076 | Layout(Layout&& from) noexcept |
| 1077 | : Layout() { |
| 1078 | *this = ::std::move(from); |
| 1079 | } |
| 1080 | |
| 1081 | inline Layout& operator=(Layout&& from) noexcept { |
| 1082 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1083 | if (this != &from) InternalSwap(&from); |
| 1084 | } else { |
| 1085 | CopyFrom(from); |
| 1086 | } |
| 1087 | return *this; |
| 1088 | } |
| 1089 | #endif |
| 1090 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 1091 | return GetArenaNoVirtual(); |
| 1092 | } |
| 1093 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 1094 | return MaybeArenaPtr(); |
| 1095 | } |
| 1096 | static const ::google::protobuf::Descriptor* descriptor(); |
| 1097 | static const Layout& default_instance(); |
| 1098 | |
| 1099 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1100 | static inline const Layout* internal_default_instance() { |
| 1101 | return reinterpret_cast<const Layout*>( |
| 1102 | &_Layout_default_instance_); |
| 1103 | } |
| 1104 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 1105 | 2; |
| 1106 | |
| 1107 | void UnsafeArenaSwap(Layout* other); |
| 1108 | void Swap(Layout* other); |
| 1109 | friend void swap(Layout& a, Layout& b) { |
| 1110 | a.Swap(&b); |
| 1111 | } |
| 1112 | |
| 1113 | // implements Message ---------------------------------------------- |
| 1114 | |
| 1115 | inline Layout* New() const PROTOBUF_FINAL { |
| 1116 | return ::google::protobuf::Arena::CreateMessage<Layout>(NULL); |
| 1117 | } |
| 1118 | |
| 1119 | Layout* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 1120 | return ::google::protobuf::Arena::CreateMessage<Layout>(arena); |
| 1121 | } |
| 1122 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1123 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1124 | void CopyFrom(const Layout& from); |
| 1125 | void MergeFrom(const Layout& from); |
| 1126 | void Clear() PROTOBUF_FINAL; |
| 1127 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1128 | |
| 1129 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1130 | bool MergePartialFromCodedStream( |
| 1131 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1132 | void SerializeWithCachedSizes( |
| 1133 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1134 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1135 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1136 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1137 | private: |
| 1138 | void SharedCtor(); |
| 1139 | void SharedDtor(); |
| 1140 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1141 | void InternalSwap(Layout* other); |
| 1142 | protected: |
| 1143 | explicit Layout(::google::protobuf::Arena* arena); |
| 1144 | private: |
| 1145 | static void ArenaDtor(void* object); |
| 1146 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1147 | private: |
| 1148 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1149 | return _internal_metadata_.arena(); |
| 1150 | } |
| 1151 | inline void* MaybeArenaPtr() const { |
| 1152 | return _internal_metadata_.raw_arena_ptr(); |
| 1153 | } |
| 1154 | public: |
| 1155 | |
| 1156 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1157 | |
| 1158 | // nested types ---------------------------------------------------- |
| 1159 | |
| 1160 | // accessors ------------------------------------------------------- |
| 1161 | |
| 1162 | // repeated int64 minor_to_major = 1; |
| 1163 | int minor_to_major_size() const; |
| 1164 | void clear_minor_to_major(); |
| 1165 | static const int kMinorToMajorFieldNumber = 1; |
| 1166 | ::google::protobuf::int64 minor_to_major(int index) const; |
| 1167 | void set_minor_to_major(int index, ::google::protobuf::int64 value); |
| 1168 | void add_minor_to_major(::google::protobuf::int64 value); |
| 1169 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 1170 | minor_to_major() const; |
| 1171 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 1172 | mutable_minor_to_major(); |
| 1173 | |
| 1174 | // repeated int64 padded_dimensions = 2; |
| 1175 | int padded_dimensions_size() const; |
| 1176 | void clear_padded_dimensions(); |
| 1177 | static const int kPaddedDimensionsFieldNumber = 2; |
| 1178 | ::google::protobuf::int64 padded_dimensions(int index) const; |
| 1179 | void set_padded_dimensions(int index, ::google::protobuf::int64 value); |
| 1180 | void add_padded_dimensions(::google::protobuf::int64 value); |
| 1181 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 1182 | padded_dimensions() const; |
| 1183 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 1184 | mutable_padded_dimensions(); |
| 1185 | |
| 1186 | // .xla.PaddingValue padding_value = 3; |
| 1187 | void clear_padding_value(); |
| 1188 | static const int kPaddingValueFieldNumber = 3; |
| 1189 | ::xla::PaddingValue padding_value() const; |
| 1190 | void set_padding_value(::xla::PaddingValue value); |
| 1191 | |
| 1192 | // .xla.Format format = 4; |
| 1193 | void clear_format(); |
| 1194 | static const int kFormatFieldNumber = 4; |
| 1195 | ::xla::Format format() const; |
| 1196 | void set_format(::xla::Format value); |
| 1197 | |
| 1198 | // int64 max_sparse_elements = 5; |
| 1199 | void clear_max_sparse_elements(); |
| 1200 | static const int kMaxSparseElementsFieldNumber = 5; |
| 1201 | ::google::protobuf::int64 max_sparse_elements() const; |
| 1202 | void set_max_sparse_elements(::google::protobuf::int64 value); |
| 1203 | |
| 1204 | // @@protoc_insertion_point(class_scope:xla.Layout) |
| 1205 | private: |
| 1206 | |
| 1207 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1208 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1209 | typedef void InternalArenaConstructable_; |
| 1210 | typedef void DestructorSkippable_; |
| 1211 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > minor_to_major_; |
| 1212 | mutable int _minor_to_major_cached_byte_size_; |
| 1213 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > padded_dimensions_; |
| 1214 | mutable int _padded_dimensions_cached_byte_size_; |
| 1215 | int padding_value_; |
| 1216 | int format_; |
| 1217 | ::google::protobuf::int64 max_sparse_elements_; |
| 1218 | mutable int _cached_size_; |
| 1219 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1220 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsLayoutImpl(); |
| 1221 | }; |
| 1222 | // ------------------------------------------------------------------- |
| 1223 | |
| 1224 | class Shape : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.Shape) */ { |
| 1225 | public: |
| 1226 | Shape(); |
| 1227 | virtual ~Shape(); |
| 1228 | |
| 1229 | Shape(const Shape& from); |
| 1230 | |
| 1231 | inline Shape& operator=(const Shape& from) { |
| 1232 | CopyFrom(from); |
| 1233 | return *this; |
| 1234 | } |
| 1235 | #if LANG_CXX11 |
| 1236 | Shape(Shape&& from) noexcept |
| 1237 | : Shape() { |
| 1238 | *this = ::std::move(from); |
| 1239 | } |
| 1240 | |
| 1241 | inline Shape& operator=(Shape&& from) noexcept { |
| 1242 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1243 | if (this != &from) InternalSwap(&from); |
| 1244 | } else { |
| 1245 | CopyFrom(from); |
| 1246 | } |
| 1247 | return *this; |
| 1248 | } |
| 1249 | #endif |
| 1250 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 1251 | return GetArenaNoVirtual(); |
| 1252 | } |
| 1253 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 1254 | return MaybeArenaPtr(); |
| 1255 | } |
| 1256 | static const ::google::protobuf::Descriptor* descriptor(); |
| 1257 | static const Shape& default_instance(); |
| 1258 | |
| 1259 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1260 | static inline const Shape* internal_default_instance() { |
| 1261 | return reinterpret_cast<const Shape*>( |
| 1262 | &_Shape_default_instance_); |
| 1263 | } |
| 1264 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 1265 | 3; |
| 1266 | |
| 1267 | void UnsafeArenaSwap(Shape* other); |
| 1268 | void Swap(Shape* other); |
| 1269 | friend void swap(Shape& a, Shape& b) { |
| 1270 | a.Swap(&b); |
| 1271 | } |
| 1272 | |
| 1273 | // implements Message ---------------------------------------------- |
| 1274 | |
| 1275 | inline Shape* New() const PROTOBUF_FINAL { |
| 1276 | return ::google::protobuf::Arena::CreateMessage<Shape>(NULL); |
| 1277 | } |
| 1278 | |
| 1279 | Shape* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 1280 | return ::google::protobuf::Arena::CreateMessage<Shape>(arena); |
| 1281 | } |
| 1282 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1283 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1284 | void CopyFrom(const Shape& from); |
| 1285 | void MergeFrom(const Shape& from); |
| 1286 | void Clear() PROTOBUF_FINAL; |
| 1287 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1288 | |
| 1289 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1290 | bool MergePartialFromCodedStream( |
| 1291 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1292 | void SerializeWithCachedSizes( |
| 1293 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1294 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1295 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1296 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1297 | private: |
| 1298 | void SharedCtor(); |
| 1299 | void SharedDtor(); |
| 1300 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1301 | void InternalSwap(Shape* other); |
| 1302 | protected: |
| 1303 | explicit Shape(::google::protobuf::Arena* arena); |
| 1304 | private: |
| 1305 | static void ArenaDtor(void* object); |
| 1306 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1307 | private: |
| 1308 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1309 | return _internal_metadata_.arena(); |
| 1310 | } |
| 1311 | inline void* MaybeArenaPtr() const { |
| 1312 | return _internal_metadata_.raw_arena_ptr(); |
| 1313 | } |
| 1314 | public: |
| 1315 | |
| 1316 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1317 | |
| 1318 | // nested types ---------------------------------------------------- |
| 1319 | |
| 1320 | // accessors ------------------------------------------------------- |
| 1321 | |
| 1322 | // repeated int64 dimensions = 3; |
| 1323 | int dimensions_size() const; |
| 1324 | void clear_dimensions(); |
| 1325 | static const int kDimensionsFieldNumber = 3; |
| 1326 | ::google::protobuf::int64 dimensions(int index) const; |
| 1327 | void set_dimensions(int index, ::google::protobuf::int64 value); |
| 1328 | void add_dimensions(::google::protobuf::int64 value); |
| 1329 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 1330 | dimensions() const; |
| 1331 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 1332 | mutable_dimensions(); |
| 1333 | |
| 1334 | // repeated .xla.Shape tuple_shapes = 4; |
| 1335 | int tuple_shapes_size() const; |
| 1336 | void clear_tuple_shapes(); |
| 1337 | static const int kTupleShapesFieldNumber = 4; |
| 1338 | ::xla::Shape* mutable_tuple_shapes(int index); |
| 1339 | ::google::protobuf::RepeatedPtrField< ::xla::Shape >* |
| 1340 | mutable_tuple_shapes(); |
| 1341 | const ::xla::Shape& tuple_shapes(int index) const; |
| 1342 | ::xla::Shape* add_tuple_shapes(); |
| 1343 | const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& |
| 1344 | tuple_shapes() const; |
| 1345 | |
| 1346 | // .xla.Layout layout = 5; |
| 1347 | bool has_layout() const; |
| 1348 | void clear_layout(); |
| 1349 | static const int kLayoutFieldNumber = 5; |
| 1350 | const ::xla::Layout& layout() const; |
| 1351 | ::xla::Layout* release_layout(); |
| 1352 | ::xla::Layout* mutable_layout(); |
| 1353 | void set_allocated_layout(::xla::Layout* layout); |
| 1354 | void unsafe_arena_set_allocated_layout( |
| 1355 | ::xla::Layout* layout); |
| 1356 | ::xla::Layout* unsafe_arena_release_layout(); |
| 1357 | |
| 1358 | // .xla.PrimitiveType element_type = 2; |
| 1359 | void clear_element_type(); |
| 1360 | static const int kElementTypeFieldNumber = 2; |
| 1361 | ::xla::PrimitiveType element_type() const; |
| 1362 | void set_element_type(::xla::PrimitiveType value); |
| 1363 | |
| 1364 | // @@protoc_insertion_point(class_scope:xla.Shape) |
| 1365 | private: |
| 1366 | |
| 1367 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1368 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1369 | typedef void InternalArenaConstructable_; |
| 1370 | typedef void DestructorSkippable_; |
| 1371 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; |
| 1372 | mutable int _dimensions_cached_byte_size_; |
| 1373 | ::google::protobuf::RepeatedPtrField< ::xla::Shape > tuple_shapes_; |
| 1374 | ::xla::Layout* layout_; |
| 1375 | int element_type_; |
| 1376 | mutable int _cached_size_; |
| 1377 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1378 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsShapeImpl(); |
| 1379 | }; |
| 1380 | // ------------------------------------------------------------------- |
| 1381 | |
| 1382 | class ProgramShape : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ProgramShape) */ { |
| 1383 | public: |
| 1384 | ProgramShape(); |
| 1385 | virtual ~ProgramShape(); |
| 1386 | |
| 1387 | ProgramShape(const ProgramShape& from); |
| 1388 | |
| 1389 | inline ProgramShape& operator=(const ProgramShape& from) { |
| 1390 | CopyFrom(from); |
| 1391 | return *this; |
| 1392 | } |
| 1393 | #if LANG_CXX11 |
| 1394 | ProgramShape(ProgramShape&& from) noexcept |
| 1395 | : ProgramShape() { |
| 1396 | *this = ::std::move(from); |
| 1397 | } |
| 1398 | |
| 1399 | inline ProgramShape& operator=(ProgramShape&& from) noexcept { |
| 1400 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1401 | if (this != &from) InternalSwap(&from); |
| 1402 | } else { |
| 1403 | CopyFrom(from); |
| 1404 | } |
| 1405 | return *this; |
| 1406 | } |
| 1407 | #endif |
| 1408 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 1409 | return GetArenaNoVirtual(); |
| 1410 | } |
| 1411 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 1412 | return MaybeArenaPtr(); |
| 1413 | } |
| 1414 | static const ::google::protobuf::Descriptor* descriptor(); |
| 1415 | static const ProgramShape& default_instance(); |
| 1416 | |
| 1417 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1418 | static inline const ProgramShape* internal_default_instance() { |
| 1419 | return reinterpret_cast<const ProgramShape*>( |
| 1420 | &_ProgramShape_default_instance_); |
| 1421 | } |
| 1422 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 1423 | 4; |
| 1424 | |
| 1425 | void UnsafeArenaSwap(ProgramShape* other); |
| 1426 | void Swap(ProgramShape* other); |
| 1427 | friend void swap(ProgramShape& a, ProgramShape& b) { |
| 1428 | a.Swap(&b); |
| 1429 | } |
| 1430 | |
| 1431 | // implements Message ---------------------------------------------- |
| 1432 | |
| 1433 | inline ProgramShape* New() const PROTOBUF_FINAL { |
| 1434 | return ::google::protobuf::Arena::CreateMessage<ProgramShape>(NULL); |
| 1435 | } |
| 1436 | |
| 1437 | ProgramShape* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 1438 | return ::google::protobuf::Arena::CreateMessage<ProgramShape>(arena); |
| 1439 | } |
| 1440 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1441 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1442 | void CopyFrom(const ProgramShape& from); |
| 1443 | void MergeFrom(const ProgramShape& from); |
| 1444 | void Clear() PROTOBUF_FINAL; |
| 1445 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1446 | |
| 1447 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1448 | bool MergePartialFromCodedStream( |
| 1449 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1450 | void SerializeWithCachedSizes( |
| 1451 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1452 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1453 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1454 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1455 | private: |
| 1456 | void SharedCtor(); |
| 1457 | void SharedDtor(); |
| 1458 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1459 | void InternalSwap(ProgramShape* other); |
| 1460 | protected: |
| 1461 | explicit ProgramShape(::google::protobuf::Arena* arena); |
| 1462 | private: |
| 1463 | static void ArenaDtor(void* object); |
| 1464 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1465 | private: |
| 1466 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1467 | return _internal_metadata_.arena(); |
| 1468 | } |
| 1469 | inline void* MaybeArenaPtr() const { |
| 1470 | return _internal_metadata_.raw_arena_ptr(); |
| 1471 | } |
| 1472 | public: |
| 1473 | |
| 1474 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1475 | |
| 1476 | // nested types ---------------------------------------------------- |
| 1477 | |
| 1478 | // accessors ------------------------------------------------------- |
| 1479 | |
| 1480 | // repeated .xla.Shape parameters = 1; |
| 1481 | int parameters_size() const; |
| 1482 | void clear_parameters(); |
| 1483 | static const int kParametersFieldNumber = 1; |
| 1484 | ::xla::Shape* mutable_parameters(int index); |
| 1485 | ::google::protobuf::RepeatedPtrField< ::xla::Shape >* |
| 1486 | mutable_parameters(); |
| 1487 | const ::xla::Shape& parameters(int index) const; |
| 1488 | ::xla::Shape* add_parameters(); |
| 1489 | const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& |
| 1490 | parameters() const; |
| 1491 | |
| 1492 | // repeated string parameter_names = 3; |
| 1493 | int parameter_names_size() const; |
| 1494 | void clear_parameter_names(); |
| 1495 | static const int kParameterNamesFieldNumber = 3; |
| 1496 | const ::std::string& parameter_names(int index) const; |
| 1497 | ::std::string* mutable_parameter_names(int index); |
| 1498 | void set_parameter_names(int index, const ::std::string& value); |
| 1499 | #if LANG_CXX11 |
| 1500 | void set_parameter_names(int index, ::std::string&& value); |
| 1501 | #endif |
| 1502 | void set_parameter_names(int index, const char* value); |
| 1503 | void set_parameter_names(int index, const char* value, size_t size); |
| 1504 | ::std::string* add_parameter_names(); |
| 1505 | void add_parameter_names(const ::std::string& value); |
| 1506 | #if LANG_CXX11 |
| 1507 | void add_parameter_names(::std::string&& value); |
| 1508 | #endif |
| 1509 | void add_parameter_names(const char* value); |
| 1510 | void add_parameter_names(const char* value, size_t size); |
| 1511 | const ::google::protobuf::RepeatedPtrField< ::std::string>& parameter_names() const; |
| 1512 | ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_parameter_names(); |
| 1513 | |
| 1514 | // .xla.Shape result = 2; |
| 1515 | bool has_result() const; |
| 1516 | void clear_result(); |
| 1517 | static const int kResultFieldNumber = 2; |
| 1518 | const ::xla::Shape& result() const; |
| 1519 | ::xla::Shape* release_result(); |
| 1520 | ::xla::Shape* mutable_result(); |
| 1521 | void set_allocated_result(::xla::Shape* result); |
| 1522 | void unsafe_arena_set_allocated_result( |
| 1523 | ::xla::Shape* result); |
| 1524 | ::xla::Shape* unsafe_arena_release_result(); |
| 1525 | |
| 1526 | // @@protoc_insertion_point(class_scope:xla.ProgramShape) |
| 1527 | private: |
| 1528 | |
| 1529 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1530 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1531 | typedef void InternalArenaConstructable_; |
| 1532 | typedef void DestructorSkippable_; |
| 1533 | ::google::protobuf::RepeatedPtrField< ::xla::Shape > parameters_; |
| 1534 | ::google::protobuf::RepeatedPtrField< ::std::string> parameter_names_; |
| 1535 | ::xla::Shape* result_; |
| 1536 | mutable int _cached_size_; |
| 1537 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1538 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsProgramShapeImpl(); |
| 1539 | }; |
| 1540 | // ------------------------------------------------------------------- |
| 1541 | |
| 1542 | class ComputationStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputationStats) */ { |
| 1543 | public: |
| 1544 | ComputationStats(); |
| 1545 | virtual ~ComputationStats(); |
| 1546 | |
| 1547 | ComputationStats(const ComputationStats& from); |
| 1548 | |
| 1549 | inline ComputationStats& operator=(const ComputationStats& from) { |
| 1550 | CopyFrom(from); |
| 1551 | return *this; |
| 1552 | } |
| 1553 | #if LANG_CXX11 |
| 1554 | ComputationStats(ComputationStats&& from) noexcept |
| 1555 | : ComputationStats() { |
| 1556 | *this = ::std::move(from); |
| 1557 | } |
| 1558 | |
| 1559 | inline ComputationStats& operator=(ComputationStats&& from) noexcept { |
| 1560 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1561 | if (this != &from) InternalSwap(&from); |
| 1562 | } else { |
| 1563 | CopyFrom(from); |
| 1564 | } |
| 1565 | return *this; |
| 1566 | } |
| 1567 | #endif |
| 1568 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 1569 | return GetArenaNoVirtual(); |
| 1570 | } |
| 1571 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 1572 | return MaybeArenaPtr(); |
| 1573 | } |
| 1574 | static const ::google::protobuf::Descriptor* descriptor(); |
| 1575 | static const ComputationStats& default_instance(); |
| 1576 | |
| 1577 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1578 | static inline const ComputationStats* internal_default_instance() { |
| 1579 | return reinterpret_cast<const ComputationStats*>( |
| 1580 | &_ComputationStats_default_instance_); |
| 1581 | } |
| 1582 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 1583 | 5; |
| 1584 | |
| 1585 | void UnsafeArenaSwap(ComputationStats* other); |
| 1586 | void Swap(ComputationStats* other); |
| 1587 | friend void swap(ComputationStats& a, ComputationStats& b) { |
| 1588 | a.Swap(&b); |
| 1589 | } |
| 1590 | |
| 1591 | // implements Message ---------------------------------------------- |
| 1592 | |
| 1593 | inline ComputationStats* New() const PROTOBUF_FINAL { |
| 1594 | return ::google::protobuf::Arena::CreateMessage<ComputationStats>(NULL); |
| 1595 | } |
| 1596 | |
| 1597 | ComputationStats* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 1598 | return ::google::protobuf::Arena::CreateMessage<ComputationStats>(arena); |
| 1599 | } |
| 1600 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1601 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1602 | void CopyFrom(const ComputationStats& from); |
| 1603 | void MergeFrom(const ComputationStats& from); |
| 1604 | void Clear() PROTOBUF_FINAL; |
| 1605 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1606 | |
| 1607 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1608 | bool MergePartialFromCodedStream( |
| 1609 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1610 | void SerializeWithCachedSizes( |
| 1611 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1612 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1613 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1614 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1615 | private: |
| 1616 | void SharedCtor(); |
| 1617 | void SharedDtor(); |
| 1618 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1619 | void InternalSwap(ComputationStats* other); |
| 1620 | protected: |
| 1621 | explicit ComputationStats(::google::protobuf::Arena* arena); |
| 1622 | private: |
| 1623 | static void ArenaDtor(void* object); |
| 1624 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1625 | private: |
| 1626 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1627 | return _internal_metadata_.arena(); |
| 1628 | } |
| 1629 | inline void* MaybeArenaPtr() const { |
| 1630 | return _internal_metadata_.raw_arena_ptr(); |
| 1631 | } |
| 1632 | public: |
| 1633 | |
| 1634 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1635 | |
| 1636 | // nested types ---------------------------------------------------- |
| 1637 | |
| 1638 | // accessors ------------------------------------------------------- |
| 1639 | |
| 1640 | // double flop_count = 1; |
| 1641 | void clear_flop_count(); |
| 1642 | static const int kFlopCountFieldNumber = 1; |
| 1643 | double flop_count() const; |
| 1644 | void set_flop_count(double value); |
| 1645 | |
| 1646 | // double transcendental_count = 2; |
| 1647 | void clear_transcendental_count(); |
| 1648 | static const int kTranscendentalCountFieldNumber = 2; |
| 1649 | double transcendental_count() const; |
| 1650 | void set_transcendental_count(double value); |
| 1651 | |
| 1652 | // @@protoc_insertion_point(class_scope:xla.ComputationStats) |
| 1653 | private: |
| 1654 | |
| 1655 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1656 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1657 | typedef void InternalArenaConstructable_; |
| 1658 | typedef void DestructorSkippable_; |
| 1659 | double flop_count_; |
| 1660 | double transcendental_count_; |
| 1661 | mutable int _cached_size_; |
| 1662 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1663 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsComputationStatsImpl(); |
| 1664 | }; |
| 1665 | // ------------------------------------------------------------------- |
| 1666 | |
| 1667 | class OpMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OpMetadata) */ { |
| 1668 | public: |
| 1669 | OpMetadata(); |
| 1670 | virtual ~OpMetadata(); |
| 1671 | |
| 1672 | OpMetadata(const OpMetadata& from); |
| 1673 | |
| 1674 | inline OpMetadata& operator=(const OpMetadata& from) { |
| 1675 | CopyFrom(from); |
| 1676 | return *this; |
| 1677 | } |
| 1678 | #if LANG_CXX11 |
| 1679 | OpMetadata(OpMetadata&& from) noexcept |
| 1680 | : OpMetadata() { |
| 1681 | *this = ::std::move(from); |
| 1682 | } |
| 1683 | |
| 1684 | inline OpMetadata& operator=(OpMetadata&& from) noexcept { |
| 1685 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1686 | if (this != &from) InternalSwap(&from); |
| 1687 | } else { |
| 1688 | CopyFrom(from); |
| 1689 | } |
| 1690 | return *this; |
| 1691 | } |
| 1692 | #endif |
| 1693 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 1694 | return GetArenaNoVirtual(); |
| 1695 | } |
| 1696 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 1697 | return MaybeArenaPtr(); |
| 1698 | } |
| 1699 | static const ::google::protobuf::Descriptor* descriptor(); |
| 1700 | static const OpMetadata& default_instance(); |
| 1701 | |
| 1702 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1703 | static inline const OpMetadata* internal_default_instance() { |
| 1704 | return reinterpret_cast<const OpMetadata*>( |
| 1705 | &_OpMetadata_default_instance_); |
| 1706 | } |
| 1707 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 1708 | 6; |
| 1709 | |
| 1710 | void UnsafeArenaSwap(OpMetadata* other); |
| 1711 | void Swap(OpMetadata* other); |
| 1712 | friend void swap(OpMetadata& a, OpMetadata& b) { |
| 1713 | a.Swap(&b); |
| 1714 | } |
| 1715 | |
| 1716 | // implements Message ---------------------------------------------- |
| 1717 | |
| 1718 | inline OpMetadata* New() const PROTOBUF_FINAL { |
| 1719 | return ::google::protobuf::Arena::CreateMessage<OpMetadata>(NULL); |
| 1720 | } |
| 1721 | |
| 1722 | OpMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 1723 | return ::google::protobuf::Arena::CreateMessage<OpMetadata>(arena); |
| 1724 | } |
| 1725 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1726 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1727 | void CopyFrom(const OpMetadata& from); |
| 1728 | void MergeFrom(const OpMetadata& from); |
| 1729 | void Clear() PROTOBUF_FINAL; |
| 1730 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1731 | |
| 1732 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1733 | bool MergePartialFromCodedStream( |
| 1734 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1735 | void SerializeWithCachedSizes( |
| 1736 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1737 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1738 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1739 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1740 | private: |
| 1741 | void SharedCtor(); |
| 1742 | void SharedDtor(); |
| 1743 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1744 | void InternalSwap(OpMetadata* other); |
| 1745 | protected: |
| 1746 | explicit OpMetadata(::google::protobuf::Arena* arena); |
| 1747 | private: |
| 1748 | static void ArenaDtor(void* object); |
| 1749 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1750 | private: |
| 1751 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1752 | return _internal_metadata_.arena(); |
| 1753 | } |
| 1754 | inline void* MaybeArenaPtr() const { |
| 1755 | return _internal_metadata_.raw_arena_ptr(); |
| 1756 | } |
| 1757 | public: |
| 1758 | |
| 1759 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1760 | |
| 1761 | // nested types ---------------------------------------------------- |
| 1762 | |
| 1763 | // accessors ------------------------------------------------------- |
| 1764 | |
| 1765 | // string op_type = 1; |
| 1766 | void clear_op_type(); |
| 1767 | static const int kOpTypeFieldNumber = 1; |
| 1768 | const ::std::string& op_type() const; |
| 1769 | void set_op_type(const ::std::string& value); |
| 1770 | #if LANG_CXX11 |
| 1771 | void set_op_type(::std::string&& value); |
| 1772 | #endif |
| 1773 | void set_op_type(const char* value); |
| 1774 | void set_op_type(const char* value, size_t size); |
| 1775 | ::std::string* mutable_op_type(); |
| 1776 | ::std::string* release_op_type(); |
| 1777 | void set_allocated_op_type(::std::string* op_type); |
| 1778 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 1779 | " string fields are deprecated and will be removed in a" |
| 1780 | " future release." ) |
| 1781 | ::std::string* unsafe_arena_release_op_type(); |
| 1782 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 1783 | " string fields are deprecated and will be removed in a" |
| 1784 | " future release." ) |
| 1785 | void unsafe_arena_set_allocated_op_type( |
| 1786 | ::std::string* op_type); |
| 1787 | |
| 1788 | // string op_name = 2; |
| 1789 | void clear_op_name(); |
| 1790 | static const int kOpNameFieldNumber = 2; |
| 1791 | const ::std::string& op_name() const; |
| 1792 | void set_op_name(const ::std::string& value); |
| 1793 | #if LANG_CXX11 |
| 1794 | void set_op_name(::std::string&& value); |
| 1795 | #endif |
| 1796 | void set_op_name(const char* value); |
| 1797 | void set_op_name(const char* value, size_t size); |
| 1798 | ::std::string* mutable_op_name(); |
| 1799 | ::std::string* release_op_name(); |
| 1800 | void set_allocated_op_name(::std::string* op_name); |
| 1801 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 1802 | " string fields are deprecated and will be removed in a" |
| 1803 | " future release." ) |
| 1804 | ::std::string* unsafe_arena_release_op_name(); |
| 1805 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 1806 | " string fields are deprecated and will be removed in a" |
| 1807 | " future release." ) |
| 1808 | void unsafe_arena_set_allocated_op_name( |
| 1809 | ::std::string* op_name); |
| 1810 | |
| 1811 | // string source_file = 3; |
| 1812 | void clear_source_file(); |
| 1813 | static const int kSourceFileFieldNumber = 3; |
| 1814 | const ::std::string& source_file() const; |
| 1815 | void set_source_file(const ::std::string& value); |
| 1816 | #if LANG_CXX11 |
| 1817 | void set_source_file(::std::string&& value); |
| 1818 | #endif |
| 1819 | void set_source_file(const char* value); |
| 1820 | void set_source_file(const char* value, size_t size); |
| 1821 | ::std::string* mutable_source_file(); |
| 1822 | ::std::string* release_source_file(); |
| 1823 | void set_allocated_source_file(::std::string* source_file); |
| 1824 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 1825 | " string fields are deprecated and will be removed in a" |
| 1826 | " future release." ) |
| 1827 | ::std::string* unsafe_arena_release_source_file(); |
| 1828 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 1829 | " string fields are deprecated and will be removed in a" |
| 1830 | " future release." ) |
| 1831 | void unsafe_arena_set_allocated_source_file( |
| 1832 | ::std::string* source_file); |
| 1833 | |
| 1834 | // int32 source_line = 4; |
| 1835 | void clear_source_line(); |
| 1836 | static const int kSourceLineFieldNumber = 4; |
| 1837 | ::google::protobuf::int32 source_line() const; |
| 1838 | void set_source_line(::google::protobuf::int32 value); |
| 1839 | |
| 1840 | // @@protoc_insertion_point(class_scope:xla.OpMetadata) |
| 1841 | private: |
| 1842 | |
| 1843 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1844 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1845 | typedef void InternalArenaConstructable_; |
| 1846 | typedef void DestructorSkippable_; |
| 1847 | ::google::protobuf::internal::ArenaStringPtr op_type_; |
| 1848 | ::google::protobuf::internal::ArenaStringPtr op_name_; |
| 1849 | ::google::protobuf::internal::ArenaStringPtr source_file_; |
| 1850 | ::google::protobuf::int32 source_line_; |
| 1851 | mutable int _cached_size_; |
| 1852 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1853 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsOpMetadataImpl(); |
| 1854 | }; |
| 1855 | // ------------------------------------------------------------------- |
| 1856 | |
| 1857 | class ExecutionProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecutionProfile) */ { |
| 1858 | public: |
| 1859 | ExecutionProfile(); |
| 1860 | virtual ~ExecutionProfile(); |
| 1861 | |
| 1862 | ExecutionProfile(const ExecutionProfile& from); |
| 1863 | |
| 1864 | inline ExecutionProfile& operator=(const ExecutionProfile& from) { |
| 1865 | CopyFrom(from); |
| 1866 | return *this; |
| 1867 | } |
| 1868 | #if LANG_CXX11 |
| 1869 | ExecutionProfile(ExecutionProfile&& from) noexcept |
| 1870 | : ExecutionProfile() { |
| 1871 | *this = ::std::move(from); |
| 1872 | } |
| 1873 | |
| 1874 | inline ExecutionProfile& operator=(ExecutionProfile&& from) noexcept { |
| 1875 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1876 | if (this != &from) InternalSwap(&from); |
| 1877 | } else { |
| 1878 | CopyFrom(from); |
| 1879 | } |
| 1880 | return *this; |
| 1881 | } |
| 1882 | #endif |
| 1883 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 1884 | return GetArenaNoVirtual(); |
| 1885 | } |
| 1886 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 1887 | return MaybeArenaPtr(); |
| 1888 | } |
| 1889 | static const ::google::protobuf::Descriptor* descriptor(); |
| 1890 | static const ExecutionProfile& default_instance(); |
| 1891 | |
| 1892 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1893 | static inline const ExecutionProfile* internal_default_instance() { |
| 1894 | return reinterpret_cast<const ExecutionProfile*>( |
| 1895 | &_ExecutionProfile_default_instance_); |
| 1896 | } |
| 1897 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 1898 | 7; |
| 1899 | |
| 1900 | void UnsafeArenaSwap(ExecutionProfile* other); |
| 1901 | void Swap(ExecutionProfile* other); |
| 1902 | friend void swap(ExecutionProfile& a, ExecutionProfile& b) { |
| 1903 | a.Swap(&b); |
| 1904 | } |
| 1905 | |
| 1906 | // implements Message ---------------------------------------------- |
| 1907 | |
| 1908 | inline ExecutionProfile* New() const PROTOBUF_FINAL { |
| 1909 | return ::google::protobuf::Arena::CreateMessage<ExecutionProfile>(NULL); |
| 1910 | } |
| 1911 | |
| 1912 | ExecutionProfile* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 1913 | return ::google::protobuf::Arena::CreateMessage<ExecutionProfile>(arena); |
| 1914 | } |
| 1915 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1916 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 1917 | void CopyFrom(const ExecutionProfile& from); |
| 1918 | void MergeFrom(const ExecutionProfile& from); |
| 1919 | void Clear() PROTOBUF_FINAL; |
| 1920 | bool IsInitialized() const PROTOBUF_FINAL; |
| 1921 | |
| 1922 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 1923 | bool MergePartialFromCodedStream( |
| 1924 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 1925 | void SerializeWithCachedSizes( |
| 1926 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 1927 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1928 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 1929 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 1930 | private: |
| 1931 | void SharedCtor(); |
| 1932 | void SharedDtor(); |
| 1933 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 1934 | void InternalSwap(ExecutionProfile* other); |
| 1935 | protected: |
| 1936 | explicit ExecutionProfile(::google::protobuf::Arena* arena); |
| 1937 | private: |
| 1938 | static void ArenaDtor(void* object); |
| 1939 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 1940 | private: |
| 1941 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1942 | return _internal_metadata_.arena(); |
| 1943 | } |
| 1944 | inline void* MaybeArenaPtr() const { |
| 1945 | return _internal_metadata_.raw_arena_ptr(); |
| 1946 | } |
| 1947 | public: |
| 1948 | |
| 1949 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 1950 | |
| 1951 | // nested types ---------------------------------------------------- |
| 1952 | |
| 1953 | // accessors ------------------------------------------------------- |
| 1954 | |
| 1955 | // int64 compile_time_ms = 2; |
| 1956 | void clear_compile_time_ms(); |
| 1957 | static const int kCompileTimeMsFieldNumber = 2; |
| 1958 | ::google::protobuf::int64 compile_time_ms() const; |
| 1959 | void set_compile_time_ms(::google::protobuf::int64 value); |
| 1960 | |
| 1961 | // int64 compute_cycle_count = 3; |
| 1962 | void clear_compute_cycle_count(); |
| 1963 | static const int kComputeCycleCountFieldNumber = 3; |
| 1964 | ::google::protobuf::int64 compute_cycle_count() const; |
| 1965 | void set_compute_cycle_count(::google::protobuf::int64 value); |
| 1966 | |
| 1967 | // int64 compute_time_ns = 4; |
| 1968 | void clear_compute_time_ns(); |
| 1969 | static const int kComputeTimeNsFieldNumber = 4; |
| 1970 | ::google::protobuf::int64 compute_time_ns() const; |
| 1971 | void set_compute_time_ns(::google::protobuf::int64 value); |
| 1972 | |
| 1973 | // int64 compute_and_transfer_time_ns = 5; |
| 1974 | void clear_compute_and_transfer_time_ns(); |
| 1975 | static const int kComputeAndTransferTimeNsFieldNumber = 5; |
| 1976 | ::google::protobuf::int64 compute_and_transfer_time_ns() const; |
| 1977 | void set_compute_and_transfer_time_ns(::google::protobuf::int64 value); |
| 1978 | |
| 1979 | // bool compilation_cache_hit = 1; |
| 1980 | void clear_compilation_cache_hit(); |
| 1981 | static const int kCompilationCacheHitFieldNumber = 1; |
| 1982 | bool compilation_cache_hit() const; |
| 1983 | void set_compilation_cache_hit(bool value); |
| 1984 | |
| 1985 | // @@protoc_insertion_point(class_scope:xla.ExecutionProfile) |
| 1986 | private: |
| 1987 | |
| 1988 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1989 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 1990 | typedef void InternalArenaConstructable_; |
| 1991 | typedef void DestructorSkippable_; |
| 1992 | ::google::protobuf::int64 compile_time_ms_; |
| 1993 | ::google::protobuf::int64 compute_cycle_count_; |
| 1994 | ::google::protobuf::int64 compute_time_ns_; |
| 1995 | ::google::protobuf::int64 compute_and_transfer_time_ns_; |
| 1996 | bool compilation_cache_hit_; |
| 1997 | mutable int _cached_size_; |
| 1998 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 1999 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsExecutionProfileImpl(); |
| 2000 | }; |
| 2001 | // ------------------------------------------------------------------- |
| 2002 | |
| 2003 | class ComputationHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputationHandle) */ { |
| 2004 | public: |
| 2005 | ComputationHandle(); |
| 2006 | virtual ~ComputationHandle(); |
| 2007 | |
| 2008 | ComputationHandle(const ComputationHandle& from); |
| 2009 | |
| 2010 | inline ComputationHandle& operator=(const ComputationHandle& from) { |
| 2011 | CopyFrom(from); |
| 2012 | return *this; |
| 2013 | } |
| 2014 | #if LANG_CXX11 |
| 2015 | ComputationHandle(ComputationHandle&& from) noexcept |
| 2016 | : ComputationHandle() { |
| 2017 | *this = ::std::move(from); |
| 2018 | } |
| 2019 | |
| 2020 | inline ComputationHandle& operator=(ComputationHandle&& from) noexcept { |
| 2021 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2022 | if (this != &from) InternalSwap(&from); |
| 2023 | } else { |
| 2024 | CopyFrom(from); |
| 2025 | } |
| 2026 | return *this; |
| 2027 | } |
| 2028 | #endif |
| 2029 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2030 | return GetArenaNoVirtual(); |
| 2031 | } |
| 2032 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2033 | return MaybeArenaPtr(); |
| 2034 | } |
| 2035 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2036 | static const ComputationHandle& default_instance(); |
| 2037 | |
| 2038 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2039 | static inline const ComputationHandle* internal_default_instance() { |
| 2040 | return reinterpret_cast<const ComputationHandle*>( |
| 2041 | &_ComputationHandle_default_instance_); |
| 2042 | } |
| 2043 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2044 | 8; |
| 2045 | |
| 2046 | void UnsafeArenaSwap(ComputationHandle* other); |
| 2047 | void Swap(ComputationHandle* other); |
| 2048 | friend void swap(ComputationHandle& a, ComputationHandle& b) { |
| 2049 | a.Swap(&b); |
| 2050 | } |
| 2051 | |
| 2052 | // implements Message ---------------------------------------------- |
| 2053 | |
| 2054 | inline ComputationHandle* New() const PROTOBUF_FINAL { |
| 2055 | return ::google::protobuf::Arena::CreateMessage<ComputationHandle>(NULL); |
| 2056 | } |
| 2057 | |
| 2058 | ComputationHandle* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2059 | return ::google::protobuf::Arena::CreateMessage<ComputationHandle>(arena); |
| 2060 | } |
| 2061 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2062 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2063 | void CopyFrom(const ComputationHandle& from); |
| 2064 | void MergeFrom(const ComputationHandle& from); |
| 2065 | void Clear() PROTOBUF_FINAL; |
| 2066 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2067 | |
| 2068 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2069 | bool MergePartialFromCodedStream( |
| 2070 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2071 | void SerializeWithCachedSizes( |
| 2072 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2073 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2074 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2075 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2076 | private: |
| 2077 | void SharedCtor(); |
| 2078 | void SharedDtor(); |
| 2079 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2080 | void InternalSwap(ComputationHandle* other); |
| 2081 | protected: |
| 2082 | explicit ComputationHandle(::google::protobuf::Arena* arena); |
| 2083 | private: |
| 2084 | static void ArenaDtor(void* object); |
| 2085 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2086 | private: |
| 2087 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2088 | return _internal_metadata_.arena(); |
| 2089 | } |
| 2090 | inline void* MaybeArenaPtr() const { |
| 2091 | return _internal_metadata_.raw_arena_ptr(); |
| 2092 | } |
| 2093 | public: |
| 2094 | |
| 2095 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2096 | |
| 2097 | // nested types ---------------------------------------------------- |
| 2098 | |
| 2099 | // accessors ------------------------------------------------------- |
| 2100 | |
| 2101 | // int64 handle = 1; |
| 2102 | void clear_handle(); |
| 2103 | static const int kHandleFieldNumber = 1; |
| 2104 | ::google::protobuf::int64 handle() const; |
| 2105 | void set_handle(::google::protobuf::int64 value); |
| 2106 | |
| 2107 | // @@protoc_insertion_point(class_scope:xla.ComputationHandle) |
| 2108 | private: |
| 2109 | |
| 2110 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2111 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2112 | typedef void InternalArenaConstructable_; |
| 2113 | typedef void DestructorSkippable_; |
| 2114 | ::google::protobuf::int64 handle_; |
| 2115 | mutable int _cached_size_; |
| 2116 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2117 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsComputationHandleImpl(); |
| 2118 | }; |
| 2119 | // ------------------------------------------------------------------- |
| 2120 | |
| 2121 | class ExecutionHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecutionHandle) */ { |
| 2122 | public: |
| 2123 | ExecutionHandle(); |
| 2124 | virtual ~ExecutionHandle(); |
| 2125 | |
| 2126 | ExecutionHandle(const ExecutionHandle& from); |
| 2127 | |
| 2128 | inline ExecutionHandle& operator=(const ExecutionHandle& from) { |
| 2129 | CopyFrom(from); |
| 2130 | return *this; |
| 2131 | } |
| 2132 | #if LANG_CXX11 |
| 2133 | ExecutionHandle(ExecutionHandle&& from) noexcept |
| 2134 | : ExecutionHandle() { |
| 2135 | *this = ::std::move(from); |
| 2136 | } |
| 2137 | |
| 2138 | inline ExecutionHandle& operator=(ExecutionHandle&& from) noexcept { |
| 2139 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2140 | if (this != &from) InternalSwap(&from); |
| 2141 | } else { |
| 2142 | CopyFrom(from); |
| 2143 | } |
| 2144 | return *this; |
| 2145 | } |
| 2146 | #endif |
| 2147 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2148 | return GetArenaNoVirtual(); |
| 2149 | } |
| 2150 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2151 | return MaybeArenaPtr(); |
| 2152 | } |
| 2153 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2154 | static const ExecutionHandle& default_instance(); |
| 2155 | |
| 2156 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2157 | static inline const ExecutionHandle* internal_default_instance() { |
| 2158 | return reinterpret_cast<const ExecutionHandle*>( |
| 2159 | &_ExecutionHandle_default_instance_); |
| 2160 | } |
| 2161 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2162 | 9; |
| 2163 | |
| 2164 | void UnsafeArenaSwap(ExecutionHandle* other); |
| 2165 | void Swap(ExecutionHandle* other); |
| 2166 | friend void swap(ExecutionHandle& a, ExecutionHandle& b) { |
| 2167 | a.Swap(&b); |
| 2168 | } |
| 2169 | |
| 2170 | // implements Message ---------------------------------------------- |
| 2171 | |
| 2172 | inline ExecutionHandle* New() const PROTOBUF_FINAL { |
| 2173 | return ::google::protobuf::Arena::CreateMessage<ExecutionHandle>(NULL); |
| 2174 | } |
| 2175 | |
| 2176 | ExecutionHandle* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2177 | return ::google::protobuf::Arena::CreateMessage<ExecutionHandle>(arena); |
| 2178 | } |
| 2179 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2180 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2181 | void CopyFrom(const ExecutionHandle& from); |
| 2182 | void MergeFrom(const ExecutionHandle& from); |
| 2183 | void Clear() PROTOBUF_FINAL; |
| 2184 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2185 | |
| 2186 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2187 | bool MergePartialFromCodedStream( |
| 2188 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2189 | void SerializeWithCachedSizes( |
| 2190 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2191 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2192 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2193 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2194 | private: |
| 2195 | void SharedCtor(); |
| 2196 | void SharedDtor(); |
| 2197 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2198 | void InternalSwap(ExecutionHandle* other); |
| 2199 | protected: |
| 2200 | explicit ExecutionHandle(::google::protobuf::Arena* arena); |
| 2201 | private: |
| 2202 | static void ArenaDtor(void* object); |
| 2203 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2204 | private: |
| 2205 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2206 | return _internal_metadata_.arena(); |
| 2207 | } |
| 2208 | inline void* MaybeArenaPtr() const { |
| 2209 | return _internal_metadata_.raw_arena_ptr(); |
| 2210 | } |
| 2211 | public: |
| 2212 | |
| 2213 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2214 | |
| 2215 | // nested types ---------------------------------------------------- |
| 2216 | |
| 2217 | // accessors ------------------------------------------------------- |
| 2218 | |
| 2219 | // int64 handle = 1; |
| 2220 | void clear_handle(); |
| 2221 | static const int kHandleFieldNumber = 1; |
| 2222 | ::google::protobuf::int64 handle() const; |
| 2223 | void set_handle(::google::protobuf::int64 value); |
| 2224 | |
| 2225 | // @@protoc_insertion_point(class_scope:xla.ExecutionHandle) |
| 2226 | private: |
| 2227 | |
| 2228 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2229 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2230 | typedef void InternalArenaConstructable_; |
| 2231 | typedef void DestructorSkippable_; |
| 2232 | ::google::protobuf::int64 handle_; |
| 2233 | mutable int _cached_size_; |
| 2234 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2235 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsExecutionHandleImpl(); |
| 2236 | }; |
| 2237 | // ------------------------------------------------------------------- |
| 2238 | |
| 2239 | class GlobalDataHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GlobalDataHandle) */ { |
| 2240 | public: |
| 2241 | GlobalDataHandle(); |
| 2242 | virtual ~GlobalDataHandle(); |
| 2243 | |
| 2244 | GlobalDataHandle(const GlobalDataHandle& from); |
| 2245 | |
| 2246 | inline GlobalDataHandle& operator=(const GlobalDataHandle& from) { |
| 2247 | CopyFrom(from); |
| 2248 | return *this; |
| 2249 | } |
| 2250 | #if LANG_CXX11 |
| 2251 | GlobalDataHandle(GlobalDataHandle&& from) noexcept |
| 2252 | : GlobalDataHandle() { |
| 2253 | *this = ::std::move(from); |
| 2254 | } |
| 2255 | |
| 2256 | inline GlobalDataHandle& operator=(GlobalDataHandle&& from) noexcept { |
| 2257 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2258 | if (this != &from) InternalSwap(&from); |
| 2259 | } else { |
| 2260 | CopyFrom(from); |
| 2261 | } |
| 2262 | return *this; |
| 2263 | } |
| 2264 | #endif |
| 2265 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2266 | return GetArenaNoVirtual(); |
| 2267 | } |
| 2268 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2269 | return MaybeArenaPtr(); |
| 2270 | } |
| 2271 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2272 | static const GlobalDataHandle& default_instance(); |
| 2273 | |
| 2274 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2275 | static inline const GlobalDataHandle* internal_default_instance() { |
| 2276 | return reinterpret_cast<const GlobalDataHandle*>( |
| 2277 | &_GlobalDataHandle_default_instance_); |
| 2278 | } |
| 2279 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2280 | 10; |
| 2281 | |
| 2282 | void UnsafeArenaSwap(GlobalDataHandle* other); |
| 2283 | void Swap(GlobalDataHandle* other); |
| 2284 | friend void swap(GlobalDataHandle& a, GlobalDataHandle& b) { |
| 2285 | a.Swap(&b); |
| 2286 | } |
| 2287 | |
| 2288 | // implements Message ---------------------------------------------- |
| 2289 | |
| 2290 | inline GlobalDataHandle* New() const PROTOBUF_FINAL { |
| 2291 | return ::google::protobuf::Arena::CreateMessage<GlobalDataHandle>(NULL); |
| 2292 | } |
| 2293 | |
| 2294 | GlobalDataHandle* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2295 | return ::google::protobuf::Arena::CreateMessage<GlobalDataHandle>(arena); |
| 2296 | } |
| 2297 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2298 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2299 | void CopyFrom(const GlobalDataHandle& from); |
| 2300 | void MergeFrom(const GlobalDataHandle& from); |
| 2301 | void Clear() PROTOBUF_FINAL; |
| 2302 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2303 | |
| 2304 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2305 | bool MergePartialFromCodedStream( |
| 2306 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2307 | void SerializeWithCachedSizes( |
| 2308 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2309 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2310 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2311 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2312 | private: |
| 2313 | void SharedCtor(); |
| 2314 | void SharedDtor(); |
| 2315 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2316 | void InternalSwap(GlobalDataHandle* other); |
| 2317 | protected: |
| 2318 | explicit GlobalDataHandle(::google::protobuf::Arena* arena); |
| 2319 | private: |
| 2320 | static void ArenaDtor(void* object); |
| 2321 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2322 | private: |
| 2323 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2324 | return _internal_metadata_.arena(); |
| 2325 | } |
| 2326 | inline void* MaybeArenaPtr() const { |
| 2327 | return _internal_metadata_.raw_arena_ptr(); |
| 2328 | } |
| 2329 | public: |
| 2330 | |
| 2331 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2332 | |
| 2333 | // nested types ---------------------------------------------------- |
| 2334 | |
| 2335 | // accessors ------------------------------------------------------- |
| 2336 | |
| 2337 | // int64 handle = 1; |
| 2338 | void clear_handle(); |
| 2339 | static const int kHandleFieldNumber = 1; |
| 2340 | ::google::protobuf::int64 handle() const; |
| 2341 | void set_handle(::google::protobuf::int64 value); |
| 2342 | |
| 2343 | // @@protoc_insertion_point(class_scope:xla.GlobalDataHandle) |
| 2344 | private: |
| 2345 | |
| 2346 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2347 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2348 | typedef void InternalArenaConstructable_; |
| 2349 | typedef void DestructorSkippable_; |
| 2350 | ::google::protobuf::int64 handle_; |
| 2351 | mutable int _cached_size_; |
| 2352 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2353 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsGlobalDataHandleImpl(); |
| 2354 | }; |
| 2355 | // ------------------------------------------------------------------- |
| 2356 | |
| 2357 | class ComputationDataHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputationDataHandle) */ { |
| 2358 | public: |
| 2359 | ComputationDataHandle(); |
| 2360 | virtual ~ComputationDataHandle(); |
| 2361 | |
| 2362 | ComputationDataHandle(const ComputationDataHandle& from); |
| 2363 | |
| 2364 | inline ComputationDataHandle& operator=(const ComputationDataHandle& from) { |
| 2365 | CopyFrom(from); |
| 2366 | return *this; |
| 2367 | } |
| 2368 | #if LANG_CXX11 |
| 2369 | ComputationDataHandle(ComputationDataHandle&& from) noexcept |
| 2370 | : ComputationDataHandle() { |
| 2371 | *this = ::std::move(from); |
| 2372 | } |
| 2373 | |
| 2374 | inline ComputationDataHandle& operator=(ComputationDataHandle&& from) noexcept { |
| 2375 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2376 | if (this != &from) InternalSwap(&from); |
| 2377 | } else { |
| 2378 | CopyFrom(from); |
| 2379 | } |
| 2380 | return *this; |
| 2381 | } |
| 2382 | #endif |
| 2383 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2384 | return GetArenaNoVirtual(); |
| 2385 | } |
| 2386 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2387 | return MaybeArenaPtr(); |
| 2388 | } |
| 2389 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2390 | static const ComputationDataHandle& default_instance(); |
| 2391 | |
| 2392 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2393 | static inline const ComputationDataHandle* internal_default_instance() { |
| 2394 | return reinterpret_cast<const ComputationDataHandle*>( |
| 2395 | &_ComputationDataHandle_default_instance_); |
| 2396 | } |
| 2397 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2398 | 11; |
| 2399 | |
| 2400 | void UnsafeArenaSwap(ComputationDataHandle* other); |
| 2401 | void Swap(ComputationDataHandle* other); |
| 2402 | friend void swap(ComputationDataHandle& a, ComputationDataHandle& b) { |
| 2403 | a.Swap(&b); |
| 2404 | } |
| 2405 | |
| 2406 | // implements Message ---------------------------------------------- |
| 2407 | |
| 2408 | inline ComputationDataHandle* New() const PROTOBUF_FINAL { |
| 2409 | return ::google::protobuf::Arena::CreateMessage<ComputationDataHandle>(NULL); |
| 2410 | } |
| 2411 | |
| 2412 | ComputationDataHandle* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2413 | return ::google::protobuf::Arena::CreateMessage<ComputationDataHandle>(arena); |
| 2414 | } |
| 2415 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2416 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2417 | void CopyFrom(const ComputationDataHandle& from); |
| 2418 | void MergeFrom(const ComputationDataHandle& from); |
| 2419 | void Clear() PROTOBUF_FINAL; |
| 2420 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2421 | |
| 2422 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2423 | bool MergePartialFromCodedStream( |
| 2424 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2425 | void SerializeWithCachedSizes( |
| 2426 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2427 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2428 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2429 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2430 | private: |
| 2431 | void SharedCtor(); |
| 2432 | void SharedDtor(); |
| 2433 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2434 | void InternalSwap(ComputationDataHandle* other); |
| 2435 | protected: |
| 2436 | explicit ComputationDataHandle(::google::protobuf::Arena* arena); |
| 2437 | private: |
| 2438 | static void ArenaDtor(void* object); |
| 2439 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2440 | private: |
| 2441 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2442 | return _internal_metadata_.arena(); |
| 2443 | } |
| 2444 | inline void* MaybeArenaPtr() const { |
| 2445 | return _internal_metadata_.raw_arena_ptr(); |
| 2446 | } |
| 2447 | public: |
| 2448 | |
| 2449 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2450 | |
| 2451 | // nested types ---------------------------------------------------- |
| 2452 | |
| 2453 | // accessors ------------------------------------------------------- |
| 2454 | |
| 2455 | // int64 handle = 1; |
| 2456 | void clear_handle(); |
| 2457 | static const int kHandleFieldNumber = 1; |
| 2458 | ::google::protobuf::int64 handle() const; |
| 2459 | void set_handle(::google::protobuf::int64 value); |
| 2460 | |
| 2461 | // @@protoc_insertion_point(class_scope:xla.ComputationDataHandle) |
| 2462 | private: |
| 2463 | |
| 2464 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2465 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2466 | typedef void InternalArenaConstructable_; |
| 2467 | typedef void DestructorSkippable_; |
| 2468 | ::google::protobuf::int64 handle_; |
| 2469 | mutable int _cached_size_; |
| 2470 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2471 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsComputationDataHandleImpl(); |
| 2472 | }; |
| 2473 | // ------------------------------------------------------------------- |
| 2474 | |
| 2475 | class DeviceHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeviceHandle) */ { |
| 2476 | public: |
| 2477 | DeviceHandle(); |
| 2478 | virtual ~DeviceHandle(); |
| 2479 | |
| 2480 | DeviceHandle(const DeviceHandle& from); |
| 2481 | |
| 2482 | inline DeviceHandle& operator=(const DeviceHandle& from) { |
| 2483 | CopyFrom(from); |
| 2484 | return *this; |
| 2485 | } |
| 2486 | #if LANG_CXX11 |
| 2487 | DeviceHandle(DeviceHandle&& from) noexcept |
| 2488 | : DeviceHandle() { |
| 2489 | *this = ::std::move(from); |
| 2490 | } |
| 2491 | |
| 2492 | inline DeviceHandle& operator=(DeviceHandle&& from) noexcept { |
| 2493 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2494 | if (this != &from) InternalSwap(&from); |
| 2495 | } else { |
| 2496 | CopyFrom(from); |
| 2497 | } |
| 2498 | return *this; |
| 2499 | } |
| 2500 | #endif |
| 2501 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2502 | return GetArenaNoVirtual(); |
| 2503 | } |
| 2504 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2505 | return MaybeArenaPtr(); |
| 2506 | } |
| 2507 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2508 | static const DeviceHandle& default_instance(); |
| 2509 | |
| 2510 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2511 | static inline const DeviceHandle* internal_default_instance() { |
| 2512 | return reinterpret_cast<const DeviceHandle*>( |
| 2513 | &_DeviceHandle_default_instance_); |
| 2514 | } |
| 2515 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2516 | 12; |
| 2517 | |
| 2518 | void UnsafeArenaSwap(DeviceHandle* other); |
| 2519 | void Swap(DeviceHandle* other); |
| 2520 | friend void swap(DeviceHandle& a, DeviceHandle& b) { |
| 2521 | a.Swap(&b); |
| 2522 | } |
| 2523 | |
| 2524 | // implements Message ---------------------------------------------- |
| 2525 | |
| 2526 | inline DeviceHandle* New() const PROTOBUF_FINAL { |
| 2527 | return ::google::protobuf::Arena::CreateMessage<DeviceHandle>(NULL); |
| 2528 | } |
| 2529 | |
| 2530 | DeviceHandle* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2531 | return ::google::protobuf::Arena::CreateMessage<DeviceHandle>(arena); |
| 2532 | } |
| 2533 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2534 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2535 | void CopyFrom(const DeviceHandle& from); |
| 2536 | void MergeFrom(const DeviceHandle& from); |
| 2537 | void Clear() PROTOBUF_FINAL; |
| 2538 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2539 | |
| 2540 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2541 | bool MergePartialFromCodedStream( |
| 2542 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2543 | void SerializeWithCachedSizes( |
| 2544 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2545 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2546 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2547 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2548 | private: |
| 2549 | void SharedCtor(); |
| 2550 | void SharedDtor(); |
| 2551 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2552 | void InternalSwap(DeviceHandle* other); |
| 2553 | protected: |
| 2554 | explicit DeviceHandle(::google::protobuf::Arena* arena); |
| 2555 | private: |
| 2556 | static void ArenaDtor(void* object); |
| 2557 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2558 | private: |
| 2559 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2560 | return _internal_metadata_.arena(); |
| 2561 | } |
| 2562 | inline void* MaybeArenaPtr() const { |
| 2563 | return _internal_metadata_.raw_arena_ptr(); |
| 2564 | } |
| 2565 | public: |
| 2566 | |
| 2567 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2568 | |
| 2569 | // nested types ---------------------------------------------------- |
| 2570 | |
| 2571 | // accessors ------------------------------------------------------- |
| 2572 | |
| 2573 | // int64 handle = 1; |
| 2574 | void clear_handle(); |
| 2575 | static const int kHandleFieldNumber = 1; |
| 2576 | ::google::protobuf::int64 handle() const; |
| 2577 | void set_handle(::google::protobuf::int64 value); |
| 2578 | |
| 2579 | // int64 device_count = 2; |
| 2580 | void clear_device_count(); |
| 2581 | static const int kDeviceCountFieldNumber = 2; |
| 2582 | ::google::protobuf::int64 device_count() const; |
| 2583 | void set_device_count(::google::protobuf::int64 value); |
| 2584 | |
| 2585 | // @@protoc_insertion_point(class_scope:xla.DeviceHandle) |
| 2586 | private: |
| 2587 | |
| 2588 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2589 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2590 | typedef void InternalArenaConstructable_; |
| 2591 | typedef void DestructorSkippable_; |
| 2592 | ::google::protobuf::int64 handle_; |
| 2593 | ::google::protobuf::int64 device_count_; |
| 2594 | mutable int _cached_size_; |
| 2595 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2596 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDeviceHandleImpl(); |
| 2597 | }; |
| 2598 | // ------------------------------------------------------------------- |
| 2599 | |
| 2600 | class ChannelHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ChannelHandle) */ { |
| 2601 | public: |
| 2602 | ChannelHandle(); |
| 2603 | virtual ~ChannelHandle(); |
| 2604 | |
| 2605 | ChannelHandle(const ChannelHandle& from); |
| 2606 | |
| 2607 | inline ChannelHandle& operator=(const ChannelHandle& from) { |
| 2608 | CopyFrom(from); |
| 2609 | return *this; |
| 2610 | } |
| 2611 | #if LANG_CXX11 |
| 2612 | ChannelHandle(ChannelHandle&& from) noexcept |
| 2613 | : ChannelHandle() { |
| 2614 | *this = ::std::move(from); |
| 2615 | } |
| 2616 | |
| 2617 | inline ChannelHandle& operator=(ChannelHandle&& from) noexcept { |
| 2618 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2619 | if (this != &from) InternalSwap(&from); |
| 2620 | } else { |
| 2621 | CopyFrom(from); |
| 2622 | } |
| 2623 | return *this; |
| 2624 | } |
| 2625 | #endif |
| 2626 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2627 | return GetArenaNoVirtual(); |
| 2628 | } |
| 2629 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2630 | return MaybeArenaPtr(); |
| 2631 | } |
| 2632 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2633 | static const ChannelHandle& default_instance(); |
| 2634 | |
| 2635 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2636 | static inline const ChannelHandle* internal_default_instance() { |
| 2637 | return reinterpret_cast<const ChannelHandle*>( |
| 2638 | &_ChannelHandle_default_instance_); |
| 2639 | } |
| 2640 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2641 | 13; |
| 2642 | |
| 2643 | void UnsafeArenaSwap(ChannelHandle* other); |
| 2644 | void Swap(ChannelHandle* other); |
| 2645 | friend void swap(ChannelHandle& a, ChannelHandle& b) { |
| 2646 | a.Swap(&b); |
| 2647 | } |
| 2648 | |
| 2649 | // implements Message ---------------------------------------------- |
| 2650 | |
| 2651 | inline ChannelHandle* New() const PROTOBUF_FINAL { |
| 2652 | return ::google::protobuf::Arena::CreateMessage<ChannelHandle>(NULL); |
| 2653 | } |
| 2654 | |
| 2655 | ChannelHandle* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2656 | return ::google::protobuf::Arena::CreateMessage<ChannelHandle>(arena); |
| 2657 | } |
| 2658 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2659 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2660 | void CopyFrom(const ChannelHandle& from); |
| 2661 | void MergeFrom(const ChannelHandle& from); |
| 2662 | void Clear() PROTOBUF_FINAL; |
| 2663 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2664 | |
| 2665 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2666 | bool MergePartialFromCodedStream( |
| 2667 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2668 | void SerializeWithCachedSizes( |
| 2669 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2670 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2671 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2672 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2673 | private: |
| 2674 | void SharedCtor(); |
| 2675 | void SharedDtor(); |
| 2676 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2677 | void InternalSwap(ChannelHandle* other); |
| 2678 | protected: |
| 2679 | explicit ChannelHandle(::google::protobuf::Arena* arena); |
| 2680 | private: |
| 2681 | static void ArenaDtor(void* object); |
| 2682 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2683 | private: |
| 2684 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2685 | return _internal_metadata_.arena(); |
| 2686 | } |
| 2687 | inline void* MaybeArenaPtr() const { |
| 2688 | return _internal_metadata_.raw_arena_ptr(); |
| 2689 | } |
| 2690 | public: |
| 2691 | |
| 2692 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2693 | |
| 2694 | // nested types ---------------------------------------------------- |
| 2695 | |
| 2696 | // accessors ------------------------------------------------------- |
| 2697 | |
| 2698 | // int64 handle = 1; |
| 2699 | void clear_handle(); |
| 2700 | static const int kHandleFieldNumber = 1; |
| 2701 | ::google::protobuf::int64 handle() const; |
| 2702 | void set_handle(::google::protobuf::int64 value); |
| 2703 | |
| 2704 | // @@protoc_insertion_point(class_scope:xla.ChannelHandle) |
| 2705 | private: |
| 2706 | |
| 2707 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2708 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2709 | typedef void InternalArenaConstructable_; |
| 2710 | typedef void DestructorSkippable_; |
| 2711 | ::google::protobuf::int64 handle_; |
| 2712 | mutable int _cached_size_; |
| 2713 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2714 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsChannelHandleImpl(); |
| 2715 | }; |
| 2716 | // ------------------------------------------------------------------- |
| 2717 | |
| 2718 | class DeviceAssignmentProto_ComputationDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeviceAssignmentProto.ComputationDevice) */ { |
| 2719 | public: |
| 2720 | DeviceAssignmentProto_ComputationDevice(); |
| 2721 | virtual ~DeviceAssignmentProto_ComputationDevice(); |
| 2722 | |
| 2723 | DeviceAssignmentProto_ComputationDevice(const DeviceAssignmentProto_ComputationDevice& from); |
| 2724 | |
| 2725 | inline DeviceAssignmentProto_ComputationDevice& operator=(const DeviceAssignmentProto_ComputationDevice& from) { |
| 2726 | CopyFrom(from); |
| 2727 | return *this; |
| 2728 | } |
| 2729 | #if LANG_CXX11 |
| 2730 | DeviceAssignmentProto_ComputationDevice(DeviceAssignmentProto_ComputationDevice&& from) noexcept |
| 2731 | : DeviceAssignmentProto_ComputationDevice() { |
| 2732 | *this = ::std::move(from); |
| 2733 | } |
| 2734 | |
| 2735 | inline DeviceAssignmentProto_ComputationDevice& operator=(DeviceAssignmentProto_ComputationDevice&& from) noexcept { |
| 2736 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2737 | if (this != &from) InternalSwap(&from); |
| 2738 | } else { |
| 2739 | CopyFrom(from); |
| 2740 | } |
| 2741 | return *this; |
| 2742 | } |
| 2743 | #endif |
| 2744 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2745 | return GetArenaNoVirtual(); |
| 2746 | } |
| 2747 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2748 | return MaybeArenaPtr(); |
| 2749 | } |
| 2750 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2751 | static const DeviceAssignmentProto_ComputationDevice& default_instance(); |
| 2752 | |
| 2753 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2754 | static inline const DeviceAssignmentProto_ComputationDevice* internal_default_instance() { |
| 2755 | return reinterpret_cast<const DeviceAssignmentProto_ComputationDevice*>( |
| 2756 | &_DeviceAssignmentProto_ComputationDevice_default_instance_); |
| 2757 | } |
| 2758 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2759 | 14; |
| 2760 | |
| 2761 | void UnsafeArenaSwap(DeviceAssignmentProto_ComputationDevice* other); |
| 2762 | void Swap(DeviceAssignmentProto_ComputationDevice* other); |
| 2763 | friend void swap(DeviceAssignmentProto_ComputationDevice& a, DeviceAssignmentProto_ComputationDevice& b) { |
| 2764 | a.Swap(&b); |
| 2765 | } |
| 2766 | |
| 2767 | // implements Message ---------------------------------------------- |
| 2768 | |
| 2769 | inline DeviceAssignmentProto_ComputationDevice* New() const PROTOBUF_FINAL { |
| 2770 | return ::google::protobuf::Arena::CreateMessage<DeviceAssignmentProto_ComputationDevice>(NULL); |
| 2771 | } |
| 2772 | |
| 2773 | DeviceAssignmentProto_ComputationDevice* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2774 | return ::google::protobuf::Arena::CreateMessage<DeviceAssignmentProto_ComputationDevice>(arena); |
| 2775 | } |
| 2776 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2777 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2778 | void CopyFrom(const DeviceAssignmentProto_ComputationDevice& from); |
| 2779 | void MergeFrom(const DeviceAssignmentProto_ComputationDevice& from); |
| 2780 | void Clear() PROTOBUF_FINAL; |
| 2781 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2782 | |
| 2783 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2784 | bool MergePartialFromCodedStream( |
| 2785 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2786 | void SerializeWithCachedSizes( |
| 2787 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2788 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2789 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2790 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2791 | private: |
| 2792 | void SharedCtor(); |
| 2793 | void SharedDtor(); |
| 2794 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2795 | void InternalSwap(DeviceAssignmentProto_ComputationDevice* other); |
| 2796 | protected: |
| 2797 | explicit DeviceAssignmentProto_ComputationDevice(::google::protobuf::Arena* arena); |
| 2798 | private: |
| 2799 | static void ArenaDtor(void* object); |
| 2800 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2801 | private: |
| 2802 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2803 | return _internal_metadata_.arena(); |
| 2804 | } |
| 2805 | inline void* MaybeArenaPtr() const { |
| 2806 | return _internal_metadata_.raw_arena_ptr(); |
| 2807 | } |
| 2808 | public: |
| 2809 | |
| 2810 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2811 | |
| 2812 | // nested types ---------------------------------------------------- |
| 2813 | |
| 2814 | // accessors ------------------------------------------------------- |
| 2815 | |
| 2816 | // repeated int32 replica_device_ids = 1; |
| 2817 | int replica_device_ids_size() const; |
| 2818 | void clear_replica_device_ids(); |
| 2819 | static const int kReplicaDeviceIdsFieldNumber = 1; |
| 2820 | ::google::protobuf::int32 replica_device_ids(int index) const; |
| 2821 | void set_replica_device_ids(int index, ::google::protobuf::int32 value); |
| 2822 | void add_replica_device_ids(::google::protobuf::int32 value); |
| 2823 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2824 | replica_device_ids() const; |
| 2825 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2826 | mutable_replica_device_ids(); |
| 2827 | |
| 2828 | // @@protoc_insertion_point(class_scope:xla.DeviceAssignmentProto.ComputationDevice) |
| 2829 | private: |
| 2830 | |
| 2831 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2832 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2833 | typedef void InternalArenaConstructable_; |
| 2834 | typedef void DestructorSkippable_; |
| 2835 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 > replica_device_ids_; |
| 2836 | mutable int _replica_device_ids_cached_byte_size_; |
| 2837 | mutable int _cached_size_; |
| 2838 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2839 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDeviceAssignmentProto_ComputationDeviceImpl(); |
| 2840 | }; |
| 2841 | // ------------------------------------------------------------------- |
| 2842 | |
| 2843 | class DeviceAssignmentProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeviceAssignmentProto) */ { |
| 2844 | public: |
| 2845 | DeviceAssignmentProto(); |
| 2846 | virtual ~DeviceAssignmentProto(); |
| 2847 | |
| 2848 | DeviceAssignmentProto(const DeviceAssignmentProto& from); |
| 2849 | |
| 2850 | inline DeviceAssignmentProto& operator=(const DeviceAssignmentProto& from) { |
| 2851 | CopyFrom(from); |
| 2852 | return *this; |
| 2853 | } |
| 2854 | #if LANG_CXX11 |
| 2855 | DeviceAssignmentProto(DeviceAssignmentProto&& from) noexcept |
| 2856 | : DeviceAssignmentProto() { |
| 2857 | *this = ::std::move(from); |
| 2858 | } |
| 2859 | |
| 2860 | inline DeviceAssignmentProto& operator=(DeviceAssignmentProto&& from) noexcept { |
| 2861 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 2862 | if (this != &from) InternalSwap(&from); |
| 2863 | } else { |
| 2864 | CopyFrom(from); |
| 2865 | } |
| 2866 | return *this; |
| 2867 | } |
| 2868 | #endif |
| 2869 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 2870 | return GetArenaNoVirtual(); |
| 2871 | } |
| 2872 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 2873 | return MaybeArenaPtr(); |
| 2874 | } |
| 2875 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2876 | static const DeviceAssignmentProto& default_instance(); |
| 2877 | |
| 2878 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 2879 | static inline const DeviceAssignmentProto* internal_default_instance() { |
| 2880 | return reinterpret_cast<const DeviceAssignmentProto*>( |
| 2881 | &_DeviceAssignmentProto_default_instance_); |
| 2882 | } |
| 2883 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 2884 | 15; |
| 2885 | |
| 2886 | void UnsafeArenaSwap(DeviceAssignmentProto* other); |
| 2887 | void Swap(DeviceAssignmentProto* other); |
| 2888 | friend void swap(DeviceAssignmentProto& a, DeviceAssignmentProto& b) { |
| 2889 | a.Swap(&b); |
| 2890 | } |
| 2891 | |
| 2892 | // implements Message ---------------------------------------------- |
| 2893 | |
| 2894 | inline DeviceAssignmentProto* New() const PROTOBUF_FINAL { |
| 2895 | return ::google::protobuf::Arena::CreateMessage<DeviceAssignmentProto>(NULL); |
| 2896 | } |
| 2897 | |
| 2898 | DeviceAssignmentProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 2899 | return ::google::protobuf::Arena::CreateMessage<DeviceAssignmentProto>(arena); |
| 2900 | } |
| 2901 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2902 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 2903 | void CopyFrom(const DeviceAssignmentProto& from); |
| 2904 | void MergeFrom(const DeviceAssignmentProto& from); |
| 2905 | void Clear() PROTOBUF_FINAL; |
| 2906 | bool IsInitialized() const PROTOBUF_FINAL; |
| 2907 | |
| 2908 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 2909 | bool MergePartialFromCodedStream( |
| 2910 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 2911 | void SerializeWithCachedSizes( |
| 2912 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 2913 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 2914 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 2915 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 2916 | private: |
| 2917 | void SharedCtor(); |
| 2918 | void SharedDtor(); |
| 2919 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 2920 | void InternalSwap(DeviceAssignmentProto* other); |
| 2921 | protected: |
| 2922 | explicit DeviceAssignmentProto(::google::protobuf::Arena* arena); |
| 2923 | private: |
| 2924 | static void ArenaDtor(void* object); |
| 2925 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 2926 | private: |
| 2927 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 2928 | return _internal_metadata_.arena(); |
| 2929 | } |
| 2930 | inline void* MaybeArenaPtr() const { |
| 2931 | return _internal_metadata_.raw_arena_ptr(); |
| 2932 | } |
| 2933 | public: |
| 2934 | |
| 2935 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 2936 | |
| 2937 | // nested types ---------------------------------------------------- |
| 2938 | |
| 2939 | typedef DeviceAssignmentProto_ComputationDevice ComputationDevice; |
| 2940 | |
| 2941 | // accessors ------------------------------------------------------- |
| 2942 | |
| 2943 | // repeated .xla.DeviceAssignmentProto.ComputationDevice computation_devices = 3; |
| 2944 | int computation_devices_size() const; |
| 2945 | void clear_computation_devices(); |
| 2946 | static const int kComputationDevicesFieldNumber = 3; |
| 2947 | ::xla::DeviceAssignmentProto_ComputationDevice* mutable_computation_devices(int index); |
| 2948 | ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >* |
| 2949 | mutable_computation_devices(); |
| 2950 | const ::xla::DeviceAssignmentProto_ComputationDevice& computation_devices(int index) const; |
| 2951 | ::xla::DeviceAssignmentProto_ComputationDevice* add_computation_devices(); |
| 2952 | const ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >& |
| 2953 | computation_devices() const; |
| 2954 | |
| 2955 | // int32 replica_count = 1; |
| 2956 | void clear_replica_count(); |
| 2957 | static const int kReplicaCountFieldNumber = 1; |
| 2958 | ::google::protobuf::int32 replica_count() const; |
| 2959 | void set_replica_count(::google::protobuf::int32 value); |
| 2960 | |
| 2961 | // int32 computation_count = 2; |
| 2962 | void clear_computation_count(); |
| 2963 | static const int kComputationCountFieldNumber = 2; |
| 2964 | ::google::protobuf::int32 computation_count() const; |
| 2965 | void set_computation_count(::google::protobuf::int32 value); |
| 2966 | |
| 2967 | // @@protoc_insertion_point(class_scope:xla.DeviceAssignmentProto) |
| 2968 | private: |
| 2969 | |
| 2970 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 2971 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 2972 | typedef void InternalArenaConstructable_; |
| 2973 | typedef void DestructorSkippable_; |
| 2974 | ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice > computation_devices_; |
| 2975 | ::google::protobuf::int32 replica_count_; |
| 2976 | ::google::protobuf::int32 computation_count_; |
| 2977 | mutable int _cached_size_; |
| 2978 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 2979 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDeviceAssignmentProtoImpl(); |
| 2980 | }; |
| 2981 | // ------------------------------------------------------------------- |
| 2982 | |
| 2983 | class LiteralProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LiteralProto) */ { |
| 2984 | public: |
| 2985 | LiteralProto(); |
| 2986 | virtual ~LiteralProto(); |
| 2987 | |
| 2988 | LiteralProto(const LiteralProto& from); |
| 2989 | |
| 2990 | inline LiteralProto& operator=(const LiteralProto& from) { |
| 2991 | CopyFrom(from); |
| 2992 | return *this; |
| 2993 | } |
| 2994 | #if LANG_CXX11 |
| 2995 | LiteralProto(LiteralProto&& from) noexcept |
| 2996 | : LiteralProto() { |
| 2997 | *this = ::std::move(from); |
| 2998 | } |
| 2999 | |
| 3000 | inline LiteralProto& operator=(LiteralProto&& from) noexcept { |
| 3001 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 3002 | if (this != &from) InternalSwap(&from); |
| 3003 | } else { |
| 3004 | CopyFrom(from); |
| 3005 | } |
| 3006 | return *this; |
| 3007 | } |
| 3008 | #endif |
| 3009 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 3010 | return GetArenaNoVirtual(); |
| 3011 | } |
| 3012 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 3013 | return MaybeArenaPtr(); |
| 3014 | } |
| 3015 | static const ::google::protobuf::Descriptor* descriptor(); |
| 3016 | static const LiteralProto& default_instance(); |
| 3017 | |
| 3018 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 3019 | static inline const LiteralProto* internal_default_instance() { |
| 3020 | return reinterpret_cast<const LiteralProto*>( |
| 3021 | &_LiteralProto_default_instance_); |
| 3022 | } |
| 3023 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 3024 | 16; |
| 3025 | |
| 3026 | void UnsafeArenaSwap(LiteralProto* other); |
| 3027 | void Swap(LiteralProto* other); |
| 3028 | friend void swap(LiteralProto& a, LiteralProto& b) { |
| 3029 | a.Swap(&b); |
| 3030 | } |
| 3031 | |
| 3032 | // implements Message ---------------------------------------------- |
| 3033 | |
| 3034 | inline LiteralProto* New() const PROTOBUF_FINAL { |
| 3035 | return ::google::protobuf::Arena::CreateMessage<LiteralProto>(NULL); |
| 3036 | } |
| 3037 | |
| 3038 | LiteralProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 3039 | return ::google::protobuf::Arena::CreateMessage<LiteralProto>(arena); |
| 3040 | } |
| 3041 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3042 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3043 | void CopyFrom(const LiteralProto& from); |
| 3044 | void MergeFrom(const LiteralProto& from); |
| 3045 | void Clear() PROTOBUF_FINAL; |
| 3046 | bool IsInitialized() const PROTOBUF_FINAL; |
| 3047 | |
| 3048 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 3049 | bool MergePartialFromCodedStream( |
| 3050 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 3051 | void SerializeWithCachedSizes( |
| 3052 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 3053 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 3054 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 3055 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 3056 | private: |
| 3057 | void SharedCtor(); |
| 3058 | void SharedDtor(); |
| 3059 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 3060 | void InternalSwap(LiteralProto* other); |
| 3061 | protected: |
| 3062 | explicit LiteralProto(::google::protobuf::Arena* arena); |
| 3063 | private: |
| 3064 | static void ArenaDtor(void* object); |
| 3065 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 3066 | private: |
| 3067 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 3068 | return _internal_metadata_.arena(); |
| 3069 | } |
| 3070 | inline void* MaybeArenaPtr() const { |
| 3071 | return _internal_metadata_.raw_arena_ptr(); |
| 3072 | } |
| 3073 | public: |
| 3074 | |
| 3075 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 3076 | |
| 3077 | // nested types ---------------------------------------------------- |
| 3078 | |
| 3079 | // accessors ------------------------------------------------------- |
| 3080 | |
| 3081 | // repeated bool preds = 2; |
| 3082 | int preds_size() const; |
| 3083 | void clear_preds(); |
| 3084 | static const int kPredsFieldNumber = 2; |
| 3085 | bool preds(int index) const; |
| 3086 | void set_preds(int index, bool value); |
| 3087 | void add_preds(bool value); |
| 3088 | const ::google::protobuf::RepeatedField< bool >& |
| 3089 | preds() const; |
| 3090 | ::google::protobuf::RepeatedField< bool >* |
| 3091 | mutable_preds(); |
| 3092 | |
| 3093 | // repeated int32 s32s = 4; |
| 3094 | int s32s_size() const; |
| 3095 | void clear_s32s(); |
| 3096 | static const int kS32SFieldNumber = 4; |
| 3097 | ::google::protobuf::int32 s32s(int index) const; |
| 3098 | void set_s32s(int index, ::google::protobuf::int32 value); |
| 3099 | void add_s32s(::google::protobuf::int32 value); |
| 3100 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 3101 | s32s() const; |
| 3102 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 3103 | mutable_s32s(); |
| 3104 | |
| 3105 | // repeated int64 s64s = 5; |
| 3106 | int s64s_size() const; |
| 3107 | void clear_s64s(); |
| 3108 | static const int kS64SFieldNumber = 5; |
| 3109 | ::google::protobuf::int64 s64s(int index) const; |
| 3110 | void set_s64s(int index, ::google::protobuf::int64 value); |
| 3111 | void add_s64s(::google::protobuf::int64 value); |
| 3112 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 3113 | s64s() const; |
| 3114 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 3115 | mutable_s64s(); |
| 3116 | |
| 3117 | // repeated uint32 u32s = 6; |
| 3118 | int u32s_size() const; |
| 3119 | void clear_u32s(); |
| 3120 | static const int kU32SFieldNumber = 6; |
| 3121 | ::google::protobuf::uint32 u32s(int index) const; |
| 3122 | void set_u32s(int index, ::google::protobuf::uint32 value); |
| 3123 | void add_u32s(::google::protobuf::uint32 value); |
| 3124 | const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
| 3125 | u32s() const; |
| 3126 | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
| 3127 | mutable_u32s(); |
| 3128 | |
| 3129 | // repeated uint64 u64s = 7; |
| 3130 | int u64s_size() const; |
| 3131 | void clear_u64s(); |
| 3132 | static const int kU64SFieldNumber = 7; |
| 3133 | ::google::protobuf::uint64 u64s(int index) const; |
| 3134 | void set_u64s(int index, ::google::protobuf::uint64 value); |
| 3135 | void add_u64s(::google::protobuf::uint64 value); |
| 3136 | const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& |
| 3137 | u64s() const; |
| 3138 | ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* |
| 3139 | mutable_u64s(); |
| 3140 | |
| 3141 | // repeated float f32s = 8; |
| 3142 | int f32s_size() const; |
| 3143 | void clear_f32s(); |
| 3144 | static const int kF32SFieldNumber = 8; |
| 3145 | float f32s(int index) const; |
| 3146 | void set_f32s(int index, float value); |
| 3147 | void add_f32s(float value); |
| 3148 | const ::google::protobuf::RepeatedField< float >& |
| 3149 | f32s() const; |
| 3150 | ::google::protobuf::RepeatedField< float >* |
| 3151 | mutable_f32s(); |
| 3152 | |
| 3153 | // repeated double f64s = 9; |
| 3154 | int f64s_size() const; |
| 3155 | void clear_f64s(); |
| 3156 | static const int kF64SFieldNumber = 9; |
| 3157 | double f64s(int index) const; |
| 3158 | void set_f64s(int index, double value); |
| 3159 | void add_f64s(double value); |
| 3160 | const ::google::protobuf::RepeatedField< double >& |
| 3161 | f64s() const; |
| 3162 | ::google::protobuf::RepeatedField< double >* |
| 3163 | mutable_f64s(); |
| 3164 | |
| 3165 | // repeated .xla.LiteralProto tuple_literals = 10; |
| 3166 | int tuple_literals_size() const; |
| 3167 | void clear_tuple_literals(); |
| 3168 | static const int kTupleLiteralsFieldNumber = 10; |
| 3169 | ::xla::LiteralProto* mutable_tuple_literals(int index); |
| 3170 | ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >* |
| 3171 | mutable_tuple_literals(); |
| 3172 | const ::xla::LiteralProto& tuple_literals(int index) const; |
| 3173 | ::xla::LiteralProto* add_tuple_literals(); |
| 3174 | const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >& |
| 3175 | tuple_literals() const; |
| 3176 | |
| 3177 | // repeated float c64s = 12; |
| 3178 | int c64s_size() const; |
| 3179 | void clear_c64s(); |
| 3180 | static const int kC64SFieldNumber = 12; |
| 3181 | float c64s(int index) const; |
| 3182 | void set_c64s(int index, float value); |
| 3183 | void add_c64s(float value); |
| 3184 | const ::google::protobuf::RepeatedField< float >& |
| 3185 | c64s() const; |
| 3186 | ::google::protobuf::RepeatedField< float >* |
| 3187 | mutable_c64s(); |
| 3188 | |
| 3189 | // repeated int64 sparse_indices = 14; |
| 3190 | int sparse_indices_size() const; |
| 3191 | void clear_sparse_indices(); |
| 3192 | static const int kSparseIndicesFieldNumber = 14; |
| 3193 | ::google::protobuf::int64 sparse_indices(int index) const; |
| 3194 | void set_sparse_indices(int index, ::google::protobuf::int64 value); |
| 3195 | void add_sparse_indices(::google::protobuf::int64 value); |
| 3196 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 3197 | sparse_indices() const; |
| 3198 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 3199 | mutable_sparse_indices(); |
| 3200 | |
| 3201 | // bytes u8s = 3; |
| 3202 | void clear_u8s(); |
| 3203 | static const int kU8SFieldNumber = 3; |
| 3204 | const ::std::string& u8s() const; |
| 3205 | void set_u8s(const ::std::string& value); |
| 3206 | #if LANG_CXX11 |
| 3207 | void set_u8s(::std::string&& value); |
| 3208 | #endif |
| 3209 | void set_u8s(const char* value); |
| 3210 | void set_u8s(const void* value, size_t size); |
| 3211 | ::std::string* mutable_u8s(); |
| 3212 | ::std::string* release_u8s(); |
| 3213 | void set_allocated_u8s(::std::string* u8s); |
| 3214 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 3215 | " string fields are deprecated and will be removed in a" |
| 3216 | " future release." ) |
| 3217 | ::std::string* unsafe_arena_release_u8s(); |
| 3218 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 3219 | " string fields are deprecated and will be removed in a" |
| 3220 | " future release." ) |
| 3221 | void unsafe_arena_set_allocated_u8s( |
| 3222 | ::std::string* u8s); |
| 3223 | |
| 3224 | // bytes f16s = 11; |
| 3225 | void clear_f16s(); |
| 3226 | static const int kF16SFieldNumber = 11; |
| 3227 | const ::std::string& f16s() const; |
| 3228 | void set_f16s(const ::std::string& value); |
| 3229 | #if LANG_CXX11 |
| 3230 | void set_f16s(::std::string&& value); |
| 3231 | #endif |
| 3232 | void set_f16s(const char* value); |
| 3233 | void set_f16s(const void* value, size_t size); |
| 3234 | ::std::string* mutable_f16s(); |
| 3235 | ::std::string* release_f16s(); |
| 3236 | void set_allocated_f16s(::std::string* f16s); |
| 3237 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 3238 | " string fields are deprecated and will be removed in a" |
| 3239 | " future release." ) |
| 3240 | ::std::string* unsafe_arena_release_f16s(); |
| 3241 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 3242 | " string fields are deprecated and will be removed in a" |
| 3243 | " future release." ) |
| 3244 | void unsafe_arena_set_allocated_f16s( |
| 3245 | ::std::string* f16s); |
| 3246 | |
| 3247 | // bytes bf16s = 13; |
| 3248 | void clear_bf16s(); |
| 3249 | static const int kBf16SFieldNumber = 13; |
| 3250 | const ::std::string& bf16s() const; |
| 3251 | void set_bf16s(const ::std::string& value); |
| 3252 | #if LANG_CXX11 |
| 3253 | void set_bf16s(::std::string&& value); |
| 3254 | #endif |
| 3255 | void set_bf16s(const char* value); |
| 3256 | void set_bf16s(const void* value, size_t size); |
| 3257 | ::std::string* mutable_bf16s(); |
| 3258 | ::std::string* release_bf16s(); |
| 3259 | void set_allocated_bf16s(::std::string* bf16s); |
| 3260 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 3261 | " string fields are deprecated and will be removed in a" |
| 3262 | " future release." ) |
| 3263 | ::std::string* unsafe_arena_release_bf16s(); |
| 3264 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 3265 | " string fields are deprecated and will be removed in a" |
| 3266 | " future release." ) |
| 3267 | void unsafe_arena_set_allocated_bf16s( |
| 3268 | ::std::string* bf16s); |
| 3269 | |
| 3270 | // .xla.Shape shape = 1; |
| 3271 | bool has_shape() const; |
| 3272 | void clear_shape(); |
| 3273 | static const int kShapeFieldNumber = 1; |
| 3274 | const ::xla::Shape& shape() const; |
| 3275 | ::xla::Shape* release_shape(); |
| 3276 | ::xla::Shape* mutable_shape(); |
| 3277 | void set_allocated_shape(::xla::Shape* shape); |
| 3278 | void unsafe_arena_set_allocated_shape( |
| 3279 | ::xla::Shape* shape); |
| 3280 | ::xla::Shape* unsafe_arena_release_shape(); |
| 3281 | |
| 3282 | // @@protoc_insertion_point(class_scope:xla.LiteralProto) |
| 3283 | private: |
| 3284 | |
| 3285 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 3286 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 3287 | typedef void InternalArenaConstructable_; |
| 3288 | typedef void DestructorSkippable_; |
| 3289 | ::google::protobuf::RepeatedField< bool > preds_; |
| 3290 | mutable int _preds_cached_byte_size_; |
| 3291 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 > s32s_; |
| 3292 | mutable int _s32s_cached_byte_size_; |
| 3293 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > s64s_; |
| 3294 | mutable int _s64s_cached_byte_size_; |
| 3295 | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > u32s_; |
| 3296 | mutable int _u32s_cached_byte_size_; |
| 3297 | ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > u64s_; |
| 3298 | mutable int _u64s_cached_byte_size_; |
| 3299 | ::google::protobuf::RepeatedField< float > f32s_; |
| 3300 | mutable int _f32s_cached_byte_size_; |
| 3301 | ::google::protobuf::RepeatedField< double > f64s_; |
| 3302 | mutable int _f64s_cached_byte_size_; |
| 3303 | ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto > tuple_literals_; |
| 3304 | ::google::protobuf::RepeatedField< float > c64s_; |
| 3305 | mutable int _c64s_cached_byte_size_; |
| 3306 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > sparse_indices_; |
| 3307 | mutable int _sparse_indices_cached_byte_size_; |
| 3308 | ::google::protobuf::internal::ArenaStringPtr u8s_; |
| 3309 | ::google::protobuf::internal::ArenaStringPtr f16s_; |
| 3310 | ::google::protobuf::internal::ArenaStringPtr bf16s_; |
| 3311 | ::xla::Shape* shape_; |
| 3312 | mutable int _cached_size_; |
| 3313 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 3314 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsLiteralProtoImpl(); |
| 3315 | }; |
| 3316 | // ------------------------------------------------------------------- |
| 3317 | |
| 3318 | class WindowDimension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.WindowDimension) */ { |
| 3319 | public: |
| 3320 | WindowDimension(); |
| 3321 | virtual ~WindowDimension(); |
| 3322 | |
| 3323 | WindowDimension(const WindowDimension& from); |
| 3324 | |
| 3325 | inline WindowDimension& operator=(const WindowDimension& from) { |
| 3326 | CopyFrom(from); |
| 3327 | return *this; |
| 3328 | } |
| 3329 | #if LANG_CXX11 |
| 3330 | WindowDimension(WindowDimension&& from) noexcept |
| 3331 | : WindowDimension() { |
| 3332 | *this = ::std::move(from); |
| 3333 | } |
| 3334 | |
| 3335 | inline WindowDimension& operator=(WindowDimension&& from) noexcept { |
| 3336 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 3337 | if (this != &from) InternalSwap(&from); |
| 3338 | } else { |
| 3339 | CopyFrom(from); |
| 3340 | } |
| 3341 | return *this; |
| 3342 | } |
| 3343 | #endif |
| 3344 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 3345 | return GetArenaNoVirtual(); |
| 3346 | } |
| 3347 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 3348 | return MaybeArenaPtr(); |
| 3349 | } |
| 3350 | static const ::google::protobuf::Descriptor* descriptor(); |
| 3351 | static const WindowDimension& default_instance(); |
| 3352 | |
| 3353 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 3354 | static inline const WindowDimension* internal_default_instance() { |
| 3355 | return reinterpret_cast<const WindowDimension*>( |
| 3356 | &_WindowDimension_default_instance_); |
| 3357 | } |
| 3358 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 3359 | 17; |
| 3360 | |
| 3361 | void UnsafeArenaSwap(WindowDimension* other); |
| 3362 | void Swap(WindowDimension* other); |
| 3363 | friend void swap(WindowDimension& a, WindowDimension& b) { |
| 3364 | a.Swap(&b); |
| 3365 | } |
| 3366 | |
| 3367 | // implements Message ---------------------------------------------- |
| 3368 | |
| 3369 | inline WindowDimension* New() const PROTOBUF_FINAL { |
| 3370 | return ::google::protobuf::Arena::CreateMessage<WindowDimension>(NULL); |
| 3371 | } |
| 3372 | |
| 3373 | WindowDimension* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 3374 | return ::google::protobuf::Arena::CreateMessage<WindowDimension>(arena); |
| 3375 | } |
| 3376 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3377 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3378 | void CopyFrom(const WindowDimension& from); |
| 3379 | void MergeFrom(const WindowDimension& from); |
| 3380 | void Clear() PROTOBUF_FINAL; |
| 3381 | bool IsInitialized() const PROTOBUF_FINAL; |
| 3382 | |
| 3383 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 3384 | bool MergePartialFromCodedStream( |
| 3385 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 3386 | void SerializeWithCachedSizes( |
| 3387 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 3388 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 3389 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 3390 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 3391 | private: |
| 3392 | void SharedCtor(); |
| 3393 | void SharedDtor(); |
| 3394 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 3395 | void InternalSwap(WindowDimension* other); |
| 3396 | protected: |
| 3397 | explicit WindowDimension(::google::protobuf::Arena* arena); |
| 3398 | private: |
| 3399 | static void ArenaDtor(void* object); |
| 3400 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 3401 | private: |
| 3402 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 3403 | return _internal_metadata_.arena(); |
| 3404 | } |
| 3405 | inline void* MaybeArenaPtr() const { |
| 3406 | return _internal_metadata_.raw_arena_ptr(); |
| 3407 | } |
| 3408 | public: |
| 3409 | |
| 3410 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 3411 | |
| 3412 | // nested types ---------------------------------------------------- |
| 3413 | |
| 3414 | // accessors ------------------------------------------------------- |
| 3415 | |
| 3416 | // int64 size = 1; |
| 3417 | void clear_size(); |
| 3418 | static const int kSizeFieldNumber = 1; |
| 3419 | ::google::protobuf::int64 size() const; |
| 3420 | void set_size(::google::protobuf::int64 value); |
| 3421 | |
| 3422 | // int64 stride = 2; |
| 3423 | void clear_stride(); |
| 3424 | static const int kStrideFieldNumber = 2; |
| 3425 | ::google::protobuf::int64 stride() const; |
| 3426 | void set_stride(::google::protobuf::int64 value); |
| 3427 | |
| 3428 | // int64 padding_low = 3; |
| 3429 | void clear_padding_low(); |
| 3430 | static const int kPaddingLowFieldNumber = 3; |
| 3431 | ::google::protobuf::int64 padding_low() const; |
| 3432 | void set_padding_low(::google::protobuf::int64 value); |
| 3433 | |
| 3434 | // int64 padding_high = 4; |
| 3435 | void clear_padding_high(); |
| 3436 | static const int kPaddingHighFieldNumber = 4; |
| 3437 | ::google::protobuf::int64 padding_high() const; |
| 3438 | void set_padding_high(::google::protobuf::int64 value); |
| 3439 | |
| 3440 | // int64 window_dilation = 5; |
| 3441 | void clear_window_dilation(); |
| 3442 | static const int kWindowDilationFieldNumber = 5; |
| 3443 | ::google::protobuf::int64 window_dilation() const; |
| 3444 | void set_window_dilation(::google::protobuf::int64 value); |
| 3445 | |
| 3446 | // int64 base_dilation = 6; |
| 3447 | void clear_base_dilation(); |
| 3448 | static const int kBaseDilationFieldNumber = 6; |
| 3449 | ::google::protobuf::int64 base_dilation() const; |
| 3450 | void set_base_dilation(::google::protobuf::int64 value); |
| 3451 | |
| 3452 | // bool window_reversal = 7; |
| 3453 | void clear_window_reversal(); |
| 3454 | static const int kWindowReversalFieldNumber = 7; |
| 3455 | bool window_reversal() const; |
| 3456 | void set_window_reversal(bool value); |
| 3457 | |
| 3458 | // @@protoc_insertion_point(class_scope:xla.WindowDimension) |
| 3459 | private: |
| 3460 | |
| 3461 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 3462 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 3463 | typedef void InternalArenaConstructable_; |
| 3464 | typedef void DestructorSkippable_; |
| 3465 | ::google::protobuf::int64 size_; |
| 3466 | ::google::protobuf::int64 stride_; |
| 3467 | ::google::protobuf::int64 padding_low_; |
| 3468 | ::google::protobuf::int64 padding_high_; |
| 3469 | ::google::protobuf::int64 window_dilation_; |
| 3470 | ::google::protobuf::int64 base_dilation_; |
| 3471 | bool window_reversal_; |
| 3472 | mutable int _cached_size_; |
| 3473 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 3474 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsWindowDimensionImpl(); |
| 3475 | }; |
| 3476 | // ------------------------------------------------------------------- |
| 3477 | |
| 3478 | class Window : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.Window) */ { |
| 3479 | public: |
| 3480 | Window(); |
| 3481 | virtual ~Window(); |
| 3482 | |
| 3483 | Window(const Window& from); |
| 3484 | |
| 3485 | inline Window& operator=(const Window& from) { |
| 3486 | CopyFrom(from); |
| 3487 | return *this; |
| 3488 | } |
| 3489 | #if LANG_CXX11 |
| 3490 | Window(Window&& from) noexcept |
| 3491 | : Window() { |
| 3492 | *this = ::std::move(from); |
| 3493 | } |
| 3494 | |
| 3495 | inline Window& operator=(Window&& from) noexcept { |
| 3496 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 3497 | if (this != &from) InternalSwap(&from); |
| 3498 | } else { |
| 3499 | CopyFrom(from); |
| 3500 | } |
| 3501 | return *this; |
| 3502 | } |
| 3503 | #endif |
| 3504 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 3505 | return GetArenaNoVirtual(); |
| 3506 | } |
| 3507 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 3508 | return MaybeArenaPtr(); |
| 3509 | } |
| 3510 | static const ::google::protobuf::Descriptor* descriptor(); |
| 3511 | static const Window& default_instance(); |
| 3512 | |
| 3513 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 3514 | static inline const Window* internal_default_instance() { |
| 3515 | return reinterpret_cast<const Window*>( |
| 3516 | &_Window_default_instance_); |
| 3517 | } |
| 3518 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 3519 | 18; |
| 3520 | |
| 3521 | void UnsafeArenaSwap(Window* other); |
| 3522 | void Swap(Window* other); |
| 3523 | friend void swap(Window& a, Window& b) { |
| 3524 | a.Swap(&b); |
| 3525 | } |
| 3526 | |
| 3527 | // implements Message ---------------------------------------------- |
| 3528 | |
| 3529 | inline Window* New() const PROTOBUF_FINAL { |
| 3530 | return ::google::protobuf::Arena::CreateMessage<Window>(NULL); |
| 3531 | } |
| 3532 | |
| 3533 | Window* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 3534 | return ::google::protobuf::Arena::CreateMessage<Window>(arena); |
| 3535 | } |
| 3536 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3537 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3538 | void CopyFrom(const Window& from); |
| 3539 | void MergeFrom(const Window& from); |
| 3540 | void Clear() PROTOBUF_FINAL; |
| 3541 | bool IsInitialized() const PROTOBUF_FINAL; |
| 3542 | |
| 3543 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 3544 | bool MergePartialFromCodedStream( |
| 3545 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 3546 | void SerializeWithCachedSizes( |
| 3547 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 3548 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 3549 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 3550 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 3551 | private: |
| 3552 | void SharedCtor(); |
| 3553 | void SharedDtor(); |
| 3554 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 3555 | void InternalSwap(Window* other); |
| 3556 | protected: |
| 3557 | explicit Window(::google::protobuf::Arena* arena); |
| 3558 | private: |
| 3559 | static void ArenaDtor(void* object); |
| 3560 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 3561 | private: |
| 3562 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 3563 | return _internal_metadata_.arena(); |
| 3564 | } |
| 3565 | inline void* MaybeArenaPtr() const { |
| 3566 | return _internal_metadata_.raw_arena_ptr(); |
| 3567 | } |
| 3568 | public: |
| 3569 | |
| 3570 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 3571 | |
| 3572 | // nested types ---------------------------------------------------- |
| 3573 | |
| 3574 | // accessors ------------------------------------------------------- |
| 3575 | |
| 3576 | // repeated .xla.WindowDimension dimensions = 1; |
| 3577 | int dimensions_size() const; |
| 3578 | void clear_dimensions(); |
| 3579 | static const int kDimensionsFieldNumber = 1; |
| 3580 | ::xla::WindowDimension* mutable_dimensions(int index); |
| 3581 | ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >* |
| 3582 | mutable_dimensions(); |
| 3583 | const ::xla::WindowDimension& dimensions(int index) const; |
| 3584 | ::xla::WindowDimension* add_dimensions(); |
| 3585 | const ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >& |
| 3586 | dimensions() const; |
| 3587 | |
| 3588 | // @@protoc_insertion_point(class_scope:xla.Window) |
| 3589 | private: |
| 3590 | |
| 3591 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 3592 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 3593 | typedef void InternalArenaConstructable_; |
| 3594 | typedef void DestructorSkippable_; |
| 3595 | ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension > dimensions_; |
| 3596 | mutable int _cached_size_; |
| 3597 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 3598 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsWindowImpl(); |
| 3599 | }; |
| 3600 | // ------------------------------------------------------------------- |
| 3601 | |
| 3602 | class GatherDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GatherDimensionNumbers) */ { |
| 3603 | public: |
| 3604 | GatherDimensionNumbers(); |
| 3605 | virtual ~GatherDimensionNumbers(); |
| 3606 | |
| 3607 | GatherDimensionNumbers(const GatherDimensionNumbers& from); |
| 3608 | |
| 3609 | inline GatherDimensionNumbers& operator=(const GatherDimensionNumbers& from) { |
| 3610 | CopyFrom(from); |
| 3611 | return *this; |
| 3612 | } |
| 3613 | #if LANG_CXX11 |
| 3614 | GatherDimensionNumbers(GatherDimensionNumbers&& from) noexcept |
| 3615 | : GatherDimensionNumbers() { |
| 3616 | *this = ::std::move(from); |
| 3617 | } |
| 3618 | |
| 3619 | inline GatherDimensionNumbers& operator=(GatherDimensionNumbers&& from) noexcept { |
| 3620 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 3621 | if (this != &from) InternalSwap(&from); |
| 3622 | } else { |
| 3623 | CopyFrom(from); |
| 3624 | } |
| 3625 | return *this; |
| 3626 | } |
| 3627 | #endif |
| 3628 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 3629 | return GetArenaNoVirtual(); |
| 3630 | } |
| 3631 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 3632 | return MaybeArenaPtr(); |
| 3633 | } |
| 3634 | static const ::google::protobuf::Descriptor* descriptor(); |
| 3635 | static const GatherDimensionNumbers& default_instance(); |
| 3636 | |
| 3637 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 3638 | static inline const GatherDimensionNumbers* internal_default_instance() { |
| 3639 | return reinterpret_cast<const GatherDimensionNumbers*>( |
| 3640 | &_GatherDimensionNumbers_default_instance_); |
| 3641 | } |
| 3642 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 3643 | 19; |
| 3644 | |
| 3645 | void UnsafeArenaSwap(GatherDimensionNumbers* other); |
| 3646 | void Swap(GatherDimensionNumbers* other); |
| 3647 | friend void swap(GatherDimensionNumbers& a, GatherDimensionNumbers& b) { |
| 3648 | a.Swap(&b); |
| 3649 | } |
| 3650 | |
| 3651 | // implements Message ---------------------------------------------- |
| 3652 | |
| 3653 | inline GatherDimensionNumbers* New() const PROTOBUF_FINAL { |
| 3654 | return ::google::protobuf::Arena::CreateMessage<GatherDimensionNumbers>(NULL); |
| 3655 | } |
| 3656 | |
| 3657 | GatherDimensionNumbers* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 3658 | return ::google::protobuf::Arena::CreateMessage<GatherDimensionNumbers>(arena); |
| 3659 | } |
| 3660 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3661 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3662 | void CopyFrom(const GatherDimensionNumbers& from); |
| 3663 | void MergeFrom(const GatherDimensionNumbers& from); |
| 3664 | void Clear() PROTOBUF_FINAL; |
| 3665 | bool IsInitialized() const PROTOBUF_FINAL; |
| 3666 | |
| 3667 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 3668 | bool MergePartialFromCodedStream( |
| 3669 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 3670 | void SerializeWithCachedSizes( |
| 3671 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 3672 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 3673 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 3674 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 3675 | private: |
| 3676 | void SharedCtor(); |
| 3677 | void SharedDtor(); |
| 3678 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 3679 | void InternalSwap(GatherDimensionNumbers* other); |
| 3680 | protected: |
| 3681 | explicit GatherDimensionNumbers(::google::protobuf::Arena* arena); |
| 3682 | private: |
| 3683 | static void ArenaDtor(void* object); |
| 3684 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 3685 | private: |
| 3686 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 3687 | return _internal_metadata_.arena(); |
| 3688 | } |
| 3689 | inline void* MaybeArenaPtr() const { |
| 3690 | return _internal_metadata_.raw_arena_ptr(); |
| 3691 | } |
| 3692 | public: |
| 3693 | |
| 3694 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 3695 | |
| 3696 | // nested types ---------------------------------------------------- |
| 3697 | |
| 3698 | // accessors ------------------------------------------------------- |
| 3699 | |
| 3700 | // repeated int64 output_window_dims = 1; |
| 3701 | int output_window_dims_size() const; |
| 3702 | void clear_output_window_dims(); |
| 3703 | static const int kOutputWindowDimsFieldNumber = 1; |
| 3704 | ::google::protobuf::int64 output_window_dims(int index) const; |
| 3705 | void set_output_window_dims(int index, ::google::protobuf::int64 value); |
| 3706 | void add_output_window_dims(::google::protobuf::int64 value); |
| 3707 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 3708 | output_window_dims() const; |
| 3709 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 3710 | mutable_output_window_dims(); |
| 3711 | |
| 3712 | // repeated int64 elided_window_dims = 2; |
| 3713 | int elided_window_dims_size() const; |
| 3714 | void clear_elided_window_dims(); |
| 3715 | static const int kElidedWindowDimsFieldNumber = 2; |
| 3716 | ::google::protobuf::int64 elided_window_dims(int index) const; |
| 3717 | void set_elided_window_dims(int index, ::google::protobuf::int64 value); |
| 3718 | void add_elided_window_dims(::google::protobuf::int64 value); |
| 3719 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 3720 | elided_window_dims() const; |
| 3721 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 3722 | mutable_elided_window_dims(); |
| 3723 | |
| 3724 | // repeated int64 gather_dims_to_operand_dims = 3; |
| 3725 | int gather_dims_to_operand_dims_size() const; |
| 3726 | void clear_gather_dims_to_operand_dims(); |
| 3727 | static const int kGatherDimsToOperandDimsFieldNumber = 3; |
| 3728 | ::google::protobuf::int64 gather_dims_to_operand_dims(int index) const; |
| 3729 | void set_gather_dims_to_operand_dims(int index, ::google::protobuf::int64 value); |
| 3730 | void add_gather_dims_to_operand_dims(::google::protobuf::int64 value); |
| 3731 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 3732 | gather_dims_to_operand_dims() const; |
| 3733 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 3734 | mutable_gather_dims_to_operand_dims(); |
| 3735 | |
| 3736 | // int64 index_vector_dim = 4; |
| 3737 | void clear_index_vector_dim(); |
| 3738 | static const int kIndexVectorDimFieldNumber = 4; |
| 3739 | ::google::protobuf::int64 index_vector_dim() const; |
| 3740 | void set_index_vector_dim(::google::protobuf::int64 value); |
| 3741 | |
| 3742 | // @@protoc_insertion_point(class_scope:xla.GatherDimensionNumbers) |
| 3743 | private: |
| 3744 | |
| 3745 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 3746 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 3747 | typedef void InternalArenaConstructable_; |
| 3748 | typedef void DestructorSkippable_; |
| 3749 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > output_window_dims_; |
| 3750 | mutable int _output_window_dims_cached_byte_size_; |
| 3751 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > elided_window_dims_; |
| 3752 | mutable int _elided_window_dims_cached_byte_size_; |
| 3753 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > gather_dims_to_operand_dims_; |
| 3754 | mutable int _gather_dims_to_operand_dims_cached_byte_size_; |
| 3755 | ::google::protobuf::int64 index_vector_dim_; |
| 3756 | mutable int _cached_size_; |
| 3757 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 3758 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsGatherDimensionNumbersImpl(); |
| 3759 | }; |
| 3760 | // ------------------------------------------------------------------- |
| 3761 | |
| 3762 | class ConstantRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConstantRequest) */ { |
| 3763 | public: |
| 3764 | ConstantRequest(); |
| 3765 | virtual ~ConstantRequest(); |
| 3766 | |
| 3767 | ConstantRequest(const ConstantRequest& from); |
| 3768 | |
| 3769 | inline ConstantRequest& operator=(const ConstantRequest& from) { |
| 3770 | CopyFrom(from); |
| 3771 | return *this; |
| 3772 | } |
| 3773 | #if LANG_CXX11 |
| 3774 | ConstantRequest(ConstantRequest&& from) noexcept |
| 3775 | : ConstantRequest() { |
| 3776 | *this = ::std::move(from); |
| 3777 | } |
| 3778 | |
| 3779 | inline ConstantRequest& operator=(ConstantRequest&& from) noexcept { |
| 3780 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 3781 | if (this != &from) InternalSwap(&from); |
| 3782 | } else { |
| 3783 | CopyFrom(from); |
| 3784 | } |
| 3785 | return *this; |
| 3786 | } |
| 3787 | #endif |
| 3788 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 3789 | return GetArenaNoVirtual(); |
| 3790 | } |
| 3791 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 3792 | return MaybeArenaPtr(); |
| 3793 | } |
| 3794 | static const ::google::protobuf::Descriptor* descriptor(); |
| 3795 | static const ConstantRequest& default_instance(); |
| 3796 | |
| 3797 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 3798 | static inline const ConstantRequest* internal_default_instance() { |
| 3799 | return reinterpret_cast<const ConstantRequest*>( |
| 3800 | &_ConstantRequest_default_instance_); |
| 3801 | } |
| 3802 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 3803 | 20; |
| 3804 | |
| 3805 | void UnsafeArenaSwap(ConstantRequest* other); |
| 3806 | void Swap(ConstantRequest* other); |
| 3807 | friend void swap(ConstantRequest& a, ConstantRequest& b) { |
| 3808 | a.Swap(&b); |
| 3809 | } |
| 3810 | |
| 3811 | // implements Message ---------------------------------------------- |
| 3812 | |
| 3813 | inline ConstantRequest* New() const PROTOBUF_FINAL { |
| 3814 | return ::google::protobuf::Arena::CreateMessage<ConstantRequest>(NULL); |
| 3815 | } |
| 3816 | |
| 3817 | ConstantRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 3818 | return ::google::protobuf::Arena::CreateMessage<ConstantRequest>(arena); |
| 3819 | } |
| 3820 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3821 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3822 | void CopyFrom(const ConstantRequest& from); |
| 3823 | void MergeFrom(const ConstantRequest& from); |
| 3824 | void Clear() PROTOBUF_FINAL; |
| 3825 | bool IsInitialized() const PROTOBUF_FINAL; |
| 3826 | |
| 3827 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 3828 | bool MergePartialFromCodedStream( |
| 3829 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 3830 | void SerializeWithCachedSizes( |
| 3831 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 3832 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 3833 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 3834 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 3835 | private: |
| 3836 | void SharedCtor(); |
| 3837 | void SharedDtor(); |
| 3838 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 3839 | void InternalSwap(ConstantRequest* other); |
| 3840 | protected: |
| 3841 | explicit ConstantRequest(::google::protobuf::Arena* arena); |
| 3842 | private: |
| 3843 | static void ArenaDtor(void* object); |
| 3844 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 3845 | private: |
| 3846 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 3847 | return _internal_metadata_.arena(); |
| 3848 | } |
| 3849 | inline void* MaybeArenaPtr() const { |
| 3850 | return _internal_metadata_.raw_arena_ptr(); |
| 3851 | } |
| 3852 | public: |
| 3853 | |
| 3854 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 3855 | |
| 3856 | // nested types ---------------------------------------------------- |
| 3857 | |
| 3858 | // accessors ------------------------------------------------------- |
| 3859 | |
| 3860 | // .xla.LiteralProto literal = 2; |
| 3861 | bool has_literal() const; |
| 3862 | void clear_literal(); |
| 3863 | static const int kLiteralFieldNumber = 2; |
| 3864 | const ::xla::LiteralProto& literal() const; |
| 3865 | ::xla::LiteralProto* release_literal(); |
| 3866 | ::xla::LiteralProto* mutable_literal(); |
| 3867 | void set_allocated_literal(::xla::LiteralProto* literal); |
| 3868 | void unsafe_arena_set_allocated_literal( |
| 3869 | ::xla::LiteralProto* literal); |
| 3870 | ::xla::LiteralProto* unsafe_arena_release_literal(); |
| 3871 | |
| 3872 | // @@protoc_insertion_point(class_scope:xla.ConstantRequest) |
| 3873 | private: |
| 3874 | |
| 3875 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 3876 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 3877 | typedef void InternalArenaConstructable_; |
| 3878 | typedef void DestructorSkippable_; |
| 3879 | ::xla::LiteralProto* literal_; |
| 3880 | mutable int _cached_size_; |
| 3881 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 3882 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsConstantRequestImpl(); |
| 3883 | }; |
| 3884 | // ------------------------------------------------------------------- |
| 3885 | |
| 3886 | class GetTupleElementRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetTupleElementRequest) */ { |
| 3887 | public: |
| 3888 | GetTupleElementRequest(); |
| 3889 | virtual ~GetTupleElementRequest(); |
| 3890 | |
| 3891 | GetTupleElementRequest(const GetTupleElementRequest& from); |
| 3892 | |
| 3893 | inline GetTupleElementRequest& operator=(const GetTupleElementRequest& from) { |
| 3894 | CopyFrom(from); |
| 3895 | return *this; |
| 3896 | } |
| 3897 | #if LANG_CXX11 |
| 3898 | GetTupleElementRequest(GetTupleElementRequest&& from) noexcept |
| 3899 | : GetTupleElementRequest() { |
| 3900 | *this = ::std::move(from); |
| 3901 | } |
| 3902 | |
| 3903 | inline GetTupleElementRequest& operator=(GetTupleElementRequest&& from) noexcept { |
| 3904 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 3905 | if (this != &from) InternalSwap(&from); |
| 3906 | } else { |
| 3907 | CopyFrom(from); |
| 3908 | } |
| 3909 | return *this; |
| 3910 | } |
| 3911 | #endif |
| 3912 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 3913 | return GetArenaNoVirtual(); |
| 3914 | } |
| 3915 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 3916 | return MaybeArenaPtr(); |
| 3917 | } |
| 3918 | static const ::google::protobuf::Descriptor* descriptor(); |
| 3919 | static const GetTupleElementRequest& default_instance(); |
| 3920 | |
| 3921 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 3922 | static inline const GetTupleElementRequest* internal_default_instance() { |
| 3923 | return reinterpret_cast<const GetTupleElementRequest*>( |
| 3924 | &_GetTupleElementRequest_default_instance_); |
| 3925 | } |
| 3926 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 3927 | 21; |
| 3928 | |
| 3929 | void UnsafeArenaSwap(GetTupleElementRequest* other); |
| 3930 | void Swap(GetTupleElementRequest* other); |
| 3931 | friend void swap(GetTupleElementRequest& a, GetTupleElementRequest& b) { |
| 3932 | a.Swap(&b); |
| 3933 | } |
| 3934 | |
| 3935 | // implements Message ---------------------------------------------- |
| 3936 | |
| 3937 | inline GetTupleElementRequest* New() const PROTOBUF_FINAL { |
| 3938 | return ::google::protobuf::Arena::CreateMessage<GetTupleElementRequest>(NULL); |
| 3939 | } |
| 3940 | |
| 3941 | GetTupleElementRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 3942 | return ::google::protobuf::Arena::CreateMessage<GetTupleElementRequest>(arena); |
| 3943 | } |
| 3944 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3945 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 3946 | void CopyFrom(const GetTupleElementRequest& from); |
| 3947 | void MergeFrom(const GetTupleElementRequest& from); |
| 3948 | void Clear() PROTOBUF_FINAL; |
| 3949 | bool IsInitialized() const PROTOBUF_FINAL; |
| 3950 | |
| 3951 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 3952 | bool MergePartialFromCodedStream( |
| 3953 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 3954 | void SerializeWithCachedSizes( |
| 3955 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 3956 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 3957 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 3958 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 3959 | private: |
| 3960 | void SharedCtor(); |
| 3961 | void SharedDtor(); |
| 3962 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 3963 | void InternalSwap(GetTupleElementRequest* other); |
| 3964 | protected: |
| 3965 | explicit GetTupleElementRequest(::google::protobuf::Arena* arena); |
| 3966 | private: |
| 3967 | static void ArenaDtor(void* object); |
| 3968 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 3969 | private: |
| 3970 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 3971 | return _internal_metadata_.arena(); |
| 3972 | } |
| 3973 | inline void* MaybeArenaPtr() const { |
| 3974 | return _internal_metadata_.raw_arena_ptr(); |
| 3975 | } |
| 3976 | public: |
| 3977 | |
| 3978 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 3979 | |
| 3980 | // nested types ---------------------------------------------------- |
| 3981 | |
| 3982 | // accessors ------------------------------------------------------- |
| 3983 | |
| 3984 | // .xla.ComputationDataHandle operand = 2; |
| 3985 | bool has_operand() const; |
| 3986 | void clear_operand(); |
| 3987 | static const int kOperandFieldNumber = 2; |
| 3988 | const ::xla::ComputationDataHandle& operand() const; |
| 3989 | ::xla::ComputationDataHandle* release_operand(); |
| 3990 | ::xla::ComputationDataHandle* mutable_operand(); |
| 3991 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 3992 | void unsafe_arena_set_allocated_operand( |
| 3993 | ::xla::ComputationDataHandle* operand); |
| 3994 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 3995 | |
| 3996 | // int64 index = 3; |
| 3997 | void clear_index(); |
| 3998 | static const int kIndexFieldNumber = 3; |
| 3999 | ::google::protobuf::int64 index() const; |
| 4000 | void set_index(::google::protobuf::int64 value); |
| 4001 | |
| 4002 | // @@protoc_insertion_point(class_scope:xla.GetTupleElementRequest) |
| 4003 | private: |
| 4004 | |
| 4005 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4006 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4007 | typedef void InternalArenaConstructable_; |
| 4008 | typedef void DestructorSkippable_; |
| 4009 | ::xla::ComputationDataHandle* operand_; |
| 4010 | ::google::protobuf::int64 index_; |
| 4011 | mutable int _cached_size_; |
| 4012 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4013 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsGetTupleElementRequestImpl(); |
| 4014 | }; |
| 4015 | // ------------------------------------------------------------------- |
| 4016 | |
| 4017 | class SliceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.SliceRequest) */ { |
| 4018 | public: |
| 4019 | SliceRequest(); |
| 4020 | virtual ~SliceRequest(); |
| 4021 | |
| 4022 | SliceRequest(const SliceRequest& from); |
| 4023 | |
| 4024 | inline SliceRequest& operator=(const SliceRequest& from) { |
| 4025 | CopyFrom(from); |
| 4026 | return *this; |
| 4027 | } |
| 4028 | #if LANG_CXX11 |
| 4029 | SliceRequest(SliceRequest&& from) noexcept |
| 4030 | : SliceRequest() { |
| 4031 | *this = ::std::move(from); |
| 4032 | } |
| 4033 | |
| 4034 | inline SliceRequest& operator=(SliceRequest&& from) noexcept { |
| 4035 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 4036 | if (this != &from) InternalSwap(&from); |
| 4037 | } else { |
| 4038 | CopyFrom(from); |
| 4039 | } |
| 4040 | return *this; |
| 4041 | } |
| 4042 | #endif |
| 4043 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 4044 | return GetArenaNoVirtual(); |
| 4045 | } |
| 4046 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 4047 | return MaybeArenaPtr(); |
| 4048 | } |
| 4049 | static const ::google::protobuf::Descriptor* descriptor(); |
| 4050 | static const SliceRequest& default_instance(); |
| 4051 | |
| 4052 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 4053 | static inline const SliceRequest* internal_default_instance() { |
| 4054 | return reinterpret_cast<const SliceRequest*>( |
| 4055 | &_SliceRequest_default_instance_); |
| 4056 | } |
| 4057 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 4058 | 22; |
| 4059 | |
| 4060 | void UnsafeArenaSwap(SliceRequest* other); |
| 4061 | void Swap(SliceRequest* other); |
| 4062 | friend void swap(SliceRequest& a, SliceRequest& b) { |
| 4063 | a.Swap(&b); |
| 4064 | } |
| 4065 | |
| 4066 | // implements Message ---------------------------------------------- |
| 4067 | |
| 4068 | inline SliceRequest* New() const PROTOBUF_FINAL { |
| 4069 | return ::google::protobuf::Arena::CreateMessage<SliceRequest>(NULL); |
| 4070 | } |
| 4071 | |
| 4072 | SliceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 4073 | return ::google::protobuf::Arena::CreateMessage<SliceRequest>(arena); |
| 4074 | } |
| 4075 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4076 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4077 | void CopyFrom(const SliceRequest& from); |
| 4078 | void MergeFrom(const SliceRequest& from); |
| 4079 | void Clear() PROTOBUF_FINAL; |
| 4080 | bool IsInitialized() const PROTOBUF_FINAL; |
| 4081 | |
| 4082 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 4083 | bool MergePartialFromCodedStream( |
| 4084 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 4085 | void SerializeWithCachedSizes( |
| 4086 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 4087 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 4088 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 4089 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 4090 | private: |
| 4091 | void SharedCtor(); |
| 4092 | void SharedDtor(); |
| 4093 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 4094 | void InternalSwap(SliceRequest* other); |
| 4095 | protected: |
| 4096 | explicit SliceRequest(::google::protobuf::Arena* arena); |
| 4097 | private: |
| 4098 | static void ArenaDtor(void* object); |
| 4099 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 4100 | private: |
| 4101 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 4102 | return _internal_metadata_.arena(); |
| 4103 | } |
| 4104 | inline void* MaybeArenaPtr() const { |
| 4105 | return _internal_metadata_.raw_arena_ptr(); |
| 4106 | } |
| 4107 | public: |
| 4108 | |
| 4109 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 4110 | |
| 4111 | // nested types ---------------------------------------------------- |
| 4112 | |
| 4113 | // accessors ------------------------------------------------------- |
| 4114 | |
| 4115 | // repeated int64 start_indices = 3; |
| 4116 | int start_indices_size() const; |
| 4117 | void clear_start_indices(); |
| 4118 | static const int kStartIndicesFieldNumber = 3; |
| 4119 | ::google::protobuf::int64 start_indices(int index) const; |
| 4120 | void set_start_indices(int index, ::google::protobuf::int64 value); |
| 4121 | void add_start_indices(::google::protobuf::int64 value); |
| 4122 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4123 | start_indices() const; |
| 4124 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4125 | mutable_start_indices(); |
| 4126 | |
| 4127 | // repeated int64 limit_indices = 4; |
| 4128 | int limit_indices_size() const; |
| 4129 | void clear_limit_indices(); |
| 4130 | static const int kLimitIndicesFieldNumber = 4; |
| 4131 | ::google::protobuf::int64 limit_indices(int index) const; |
| 4132 | void set_limit_indices(int index, ::google::protobuf::int64 value); |
| 4133 | void add_limit_indices(::google::protobuf::int64 value); |
| 4134 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4135 | limit_indices() const; |
| 4136 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4137 | mutable_limit_indices(); |
| 4138 | |
| 4139 | // repeated int64 strides = 5; |
| 4140 | int strides_size() const; |
| 4141 | void clear_strides(); |
| 4142 | static const int kStridesFieldNumber = 5; |
| 4143 | ::google::protobuf::int64 strides(int index) const; |
| 4144 | void set_strides(int index, ::google::protobuf::int64 value); |
| 4145 | void add_strides(::google::protobuf::int64 value); |
| 4146 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4147 | strides() const; |
| 4148 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4149 | mutable_strides(); |
| 4150 | |
| 4151 | // .xla.ComputationDataHandle operand = 2; |
| 4152 | bool has_operand() const; |
| 4153 | void clear_operand(); |
| 4154 | static const int kOperandFieldNumber = 2; |
| 4155 | const ::xla::ComputationDataHandle& operand() const; |
| 4156 | ::xla::ComputationDataHandle* release_operand(); |
| 4157 | ::xla::ComputationDataHandle* mutable_operand(); |
| 4158 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 4159 | void unsafe_arena_set_allocated_operand( |
| 4160 | ::xla::ComputationDataHandle* operand); |
| 4161 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 4162 | |
| 4163 | // @@protoc_insertion_point(class_scope:xla.SliceRequest) |
| 4164 | private: |
| 4165 | |
| 4166 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4167 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4168 | typedef void InternalArenaConstructable_; |
| 4169 | typedef void DestructorSkippable_; |
| 4170 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > start_indices_; |
| 4171 | mutable int _start_indices_cached_byte_size_; |
| 4172 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > limit_indices_; |
| 4173 | mutable int _limit_indices_cached_byte_size_; |
| 4174 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > strides_; |
| 4175 | mutable int _strides_cached_byte_size_; |
| 4176 | ::xla::ComputationDataHandle* operand_; |
| 4177 | mutable int _cached_size_; |
| 4178 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4179 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsSliceRequestImpl(); |
| 4180 | }; |
| 4181 | // ------------------------------------------------------------------- |
| 4182 | |
| 4183 | class DynamicSliceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DynamicSliceRequest) */ { |
| 4184 | public: |
| 4185 | DynamicSliceRequest(); |
| 4186 | virtual ~DynamicSliceRequest(); |
| 4187 | |
| 4188 | DynamicSliceRequest(const DynamicSliceRequest& from); |
| 4189 | |
| 4190 | inline DynamicSliceRequest& operator=(const DynamicSliceRequest& from) { |
| 4191 | CopyFrom(from); |
| 4192 | return *this; |
| 4193 | } |
| 4194 | #if LANG_CXX11 |
| 4195 | DynamicSliceRequest(DynamicSliceRequest&& from) noexcept |
| 4196 | : DynamicSliceRequest() { |
| 4197 | *this = ::std::move(from); |
| 4198 | } |
| 4199 | |
| 4200 | inline DynamicSliceRequest& operator=(DynamicSliceRequest&& from) noexcept { |
| 4201 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 4202 | if (this != &from) InternalSwap(&from); |
| 4203 | } else { |
| 4204 | CopyFrom(from); |
| 4205 | } |
| 4206 | return *this; |
| 4207 | } |
| 4208 | #endif |
| 4209 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 4210 | return GetArenaNoVirtual(); |
| 4211 | } |
| 4212 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 4213 | return MaybeArenaPtr(); |
| 4214 | } |
| 4215 | static const ::google::protobuf::Descriptor* descriptor(); |
| 4216 | static const DynamicSliceRequest& default_instance(); |
| 4217 | |
| 4218 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 4219 | static inline const DynamicSliceRequest* internal_default_instance() { |
| 4220 | return reinterpret_cast<const DynamicSliceRequest*>( |
| 4221 | &_DynamicSliceRequest_default_instance_); |
| 4222 | } |
| 4223 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 4224 | 23; |
| 4225 | |
| 4226 | void UnsafeArenaSwap(DynamicSliceRequest* other); |
| 4227 | void Swap(DynamicSliceRequest* other); |
| 4228 | friend void swap(DynamicSliceRequest& a, DynamicSliceRequest& b) { |
| 4229 | a.Swap(&b); |
| 4230 | } |
| 4231 | |
| 4232 | // implements Message ---------------------------------------------- |
| 4233 | |
| 4234 | inline DynamicSliceRequest* New() const PROTOBUF_FINAL { |
| 4235 | return ::google::protobuf::Arena::CreateMessage<DynamicSliceRequest>(NULL); |
| 4236 | } |
| 4237 | |
| 4238 | DynamicSliceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 4239 | return ::google::protobuf::Arena::CreateMessage<DynamicSliceRequest>(arena); |
| 4240 | } |
| 4241 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4242 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4243 | void CopyFrom(const DynamicSliceRequest& from); |
| 4244 | void MergeFrom(const DynamicSliceRequest& from); |
| 4245 | void Clear() PROTOBUF_FINAL; |
| 4246 | bool IsInitialized() const PROTOBUF_FINAL; |
| 4247 | |
| 4248 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 4249 | bool MergePartialFromCodedStream( |
| 4250 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 4251 | void SerializeWithCachedSizes( |
| 4252 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 4253 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 4254 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 4255 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 4256 | private: |
| 4257 | void SharedCtor(); |
| 4258 | void SharedDtor(); |
| 4259 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 4260 | void InternalSwap(DynamicSliceRequest* other); |
| 4261 | protected: |
| 4262 | explicit DynamicSliceRequest(::google::protobuf::Arena* arena); |
| 4263 | private: |
| 4264 | static void ArenaDtor(void* object); |
| 4265 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 4266 | private: |
| 4267 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 4268 | return _internal_metadata_.arena(); |
| 4269 | } |
| 4270 | inline void* MaybeArenaPtr() const { |
| 4271 | return _internal_metadata_.raw_arena_ptr(); |
| 4272 | } |
| 4273 | public: |
| 4274 | |
| 4275 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 4276 | |
| 4277 | // nested types ---------------------------------------------------- |
| 4278 | |
| 4279 | // accessors ------------------------------------------------------- |
| 4280 | |
| 4281 | // repeated int64 slice_sizes = 4; |
| 4282 | int slice_sizes_size() const; |
| 4283 | void clear_slice_sizes(); |
| 4284 | static const int kSliceSizesFieldNumber = 4; |
| 4285 | ::google::protobuf::int64 slice_sizes(int index) const; |
| 4286 | void set_slice_sizes(int index, ::google::protobuf::int64 value); |
| 4287 | void add_slice_sizes(::google::protobuf::int64 value); |
| 4288 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4289 | slice_sizes() const; |
| 4290 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4291 | mutable_slice_sizes(); |
| 4292 | |
| 4293 | // .xla.ComputationDataHandle operand = 2; |
| 4294 | bool has_operand() const; |
| 4295 | void clear_operand(); |
| 4296 | static const int kOperandFieldNumber = 2; |
| 4297 | const ::xla::ComputationDataHandle& operand() const; |
| 4298 | ::xla::ComputationDataHandle* release_operand(); |
| 4299 | ::xla::ComputationDataHandle* mutable_operand(); |
| 4300 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 4301 | void unsafe_arena_set_allocated_operand( |
| 4302 | ::xla::ComputationDataHandle* operand); |
| 4303 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 4304 | |
| 4305 | // .xla.ComputationDataHandle start_indices = 3; |
| 4306 | bool has_start_indices() const; |
| 4307 | void clear_start_indices(); |
| 4308 | static const int kStartIndicesFieldNumber = 3; |
| 4309 | const ::xla::ComputationDataHandle& start_indices() const; |
| 4310 | ::xla::ComputationDataHandle* release_start_indices(); |
| 4311 | ::xla::ComputationDataHandle* mutable_start_indices(); |
| 4312 | void set_allocated_start_indices(::xla::ComputationDataHandle* start_indices); |
| 4313 | void unsafe_arena_set_allocated_start_indices( |
| 4314 | ::xla::ComputationDataHandle* start_indices); |
| 4315 | ::xla::ComputationDataHandle* unsafe_arena_release_start_indices(); |
| 4316 | |
| 4317 | // @@protoc_insertion_point(class_scope:xla.DynamicSliceRequest) |
| 4318 | private: |
| 4319 | |
| 4320 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4321 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4322 | typedef void InternalArenaConstructable_; |
| 4323 | typedef void DestructorSkippable_; |
| 4324 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > slice_sizes_; |
| 4325 | mutable int _slice_sizes_cached_byte_size_; |
| 4326 | ::xla::ComputationDataHandle* operand_; |
| 4327 | ::xla::ComputationDataHandle* start_indices_; |
| 4328 | mutable int _cached_size_; |
| 4329 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4330 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDynamicSliceRequestImpl(); |
| 4331 | }; |
| 4332 | // ------------------------------------------------------------------- |
| 4333 | |
| 4334 | class DynamicUpdateSliceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DynamicUpdateSliceRequest) */ { |
| 4335 | public: |
| 4336 | DynamicUpdateSliceRequest(); |
| 4337 | virtual ~DynamicUpdateSliceRequest(); |
| 4338 | |
| 4339 | DynamicUpdateSliceRequest(const DynamicUpdateSliceRequest& from); |
| 4340 | |
| 4341 | inline DynamicUpdateSliceRequest& operator=(const DynamicUpdateSliceRequest& from) { |
| 4342 | CopyFrom(from); |
| 4343 | return *this; |
| 4344 | } |
| 4345 | #if LANG_CXX11 |
| 4346 | DynamicUpdateSliceRequest(DynamicUpdateSliceRequest&& from) noexcept |
| 4347 | : DynamicUpdateSliceRequest() { |
| 4348 | *this = ::std::move(from); |
| 4349 | } |
| 4350 | |
| 4351 | inline DynamicUpdateSliceRequest& operator=(DynamicUpdateSliceRequest&& from) noexcept { |
| 4352 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 4353 | if (this != &from) InternalSwap(&from); |
| 4354 | } else { |
| 4355 | CopyFrom(from); |
| 4356 | } |
| 4357 | return *this; |
| 4358 | } |
| 4359 | #endif |
| 4360 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 4361 | return GetArenaNoVirtual(); |
| 4362 | } |
| 4363 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 4364 | return MaybeArenaPtr(); |
| 4365 | } |
| 4366 | static const ::google::protobuf::Descriptor* descriptor(); |
| 4367 | static const DynamicUpdateSliceRequest& default_instance(); |
| 4368 | |
| 4369 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 4370 | static inline const DynamicUpdateSliceRequest* internal_default_instance() { |
| 4371 | return reinterpret_cast<const DynamicUpdateSliceRequest*>( |
| 4372 | &_DynamicUpdateSliceRequest_default_instance_); |
| 4373 | } |
| 4374 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 4375 | 24; |
| 4376 | |
| 4377 | void UnsafeArenaSwap(DynamicUpdateSliceRequest* other); |
| 4378 | void Swap(DynamicUpdateSliceRequest* other); |
| 4379 | friend void swap(DynamicUpdateSliceRequest& a, DynamicUpdateSliceRequest& b) { |
| 4380 | a.Swap(&b); |
| 4381 | } |
| 4382 | |
| 4383 | // implements Message ---------------------------------------------- |
| 4384 | |
| 4385 | inline DynamicUpdateSliceRequest* New() const PROTOBUF_FINAL { |
| 4386 | return ::google::protobuf::Arena::CreateMessage<DynamicUpdateSliceRequest>(NULL); |
| 4387 | } |
| 4388 | |
| 4389 | DynamicUpdateSliceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 4390 | return ::google::protobuf::Arena::CreateMessage<DynamicUpdateSliceRequest>(arena); |
| 4391 | } |
| 4392 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4393 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4394 | void CopyFrom(const DynamicUpdateSliceRequest& from); |
| 4395 | void MergeFrom(const DynamicUpdateSliceRequest& from); |
| 4396 | void Clear() PROTOBUF_FINAL; |
| 4397 | bool IsInitialized() const PROTOBUF_FINAL; |
| 4398 | |
| 4399 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 4400 | bool MergePartialFromCodedStream( |
| 4401 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 4402 | void SerializeWithCachedSizes( |
| 4403 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 4404 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 4405 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 4406 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 4407 | private: |
| 4408 | void SharedCtor(); |
| 4409 | void SharedDtor(); |
| 4410 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 4411 | void InternalSwap(DynamicUpdateSliceRequest* other); |
| 4412 | protected: |
| 4413 | explicit DynamicUpdateSliceRequest(::google::protobuf::Arena* arena); |
| 4414 | private: |
| 4415 | static void ArenaDtor(void* object); |
| 4416 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 4417 | private: |
| 4418 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 4419 | return _internal_metadata_.arena(); |
| 4420 | } |
| 4421 | inline void* MaybeArenaPtr() const { |
| 4422 | return _internal_metadata_.raw_arena_ptr(); |
| 4423 | } |
| 4424 | public: |
| 4425 | |
| 4426 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 4427 | |
| 4428 | // nested types ---------------------------------------------------- |
| 4429 | |
| 4430 | // accessors ------------------------------------------------------- |
| 4431 | |
| 4432 | // .xla.ComputationDataHandle operand = 2; |
| 4433 | bool has_operand() const; |
| 4434 | void clear_operand(); |
| 4435 | static const int kOperandFieldNumber = 2; |
| 4436 | const ::xla::ComputationDataHandle& operand() const; |
| 4437 | ::xla::ComputationDataHandle* release_operand(); |
| 4438 | ::xla::ComputationDataHandle* mutable_operand(); |
| 4439 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 4440 | void unsafe_arena_set_allocated_operand( |
| 4441 | ::xla::ComputationDataHandle* operand); |
| 4442 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 4443 | |
| 4444 | // .xla.ComputationDataHandle update = 3; |
| 4445 | bool has_update() const; |
| 4446 | void clear_update(); |
| 4447 | static const int kUpdateFieldNumber = 3; |
| 4448 | const ::xla::ComputationDataHandle& update() const; |
| 4449 | ::xla::ComputationDataHandle* release_update(); |
| 4450 | ::xla::ComputationDataHandle* mutable_update(); |
| 4451 | void set_allocated_update(::xla::ComputationDataHandle* update); |
| 4452 | void unsafe_arena_set_allocated_update( |
| 4453 | ::xla::ComputationDataHandle* update); |
| 4454 | ::xla::ComputationDataHandle* unsafe_arena_release_update(); |
| 4455 | |
| 4456 | // .xla.ComputationDataHandle start_indices = 4; |
| 4457 | bool has_start_indices() const; |
| 4458 | void clear_start_indices(); |
| 4459 | static const int kStartIndicesFieldNumber = 4; |
| 4460 | const ::xla::ComputationDataHandle& start_indices() const; |
| 4461 | ::xla::ComputationDataHandle* release_start_indices(); |
| 4462 | ::xla::ComputationDataHandle* mutable_start_indices(); |
| 4463 | void set_allocated_start_indices(::xla::ComputationDataHandle* start_indices); |
| 4464 | void unsafe_arena_set_allocated_start_indices( |
| 4465 | ::xla::ComputationDataHandle* start_indices); |
| 4466 | ::xla::ComputationDataHandle* unsafe_arena_release_start_indices(); |
| 4467 | |
| 4468 | // @@protoc_insertion_point(class_scope:xla.DynamicUpdateSliceRequest) |
| 4469 | private: |
| 4470 | |
| 4471 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4472 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4473 | typedef void InternalArenaConstructable_; |
| 4474 | typedef void DestructorSkippable_; |
| 4475 | ::xla::ComputationDataHandle* operand_; |
| 4476 | ::xla::ComputationDataHandle* update_; |
| 4477 | ::xla::ComputationDataHandle* start_indices_; |
| 4478 | mutable int _cached_size_; |
| 4479 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4480 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDynamicUpdateSliceRequestImpl(); |
| 4481 | }; |
| 4482 | // ------------------------------------------------------------------- |
| 4483 | |
| 4484 | class ConvolutionDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConvolutionDimensionNumbers) */ { |
| 4485 | public: |
| 4486 | ConvolutionDimensionNumbers(); |
| 4487 | virtual ~ConvolutionDimensionNumbers(); |
| 4488 | |
| 4489 | ConvolutionDimensionNumbers(const ConvolutionDimensionNumbers& from); |
| 4490 | |
| 4491 | inline ConvolutionDimensionNumbers& operator=(const ConvolutionDimensionNumbers& from) { |
| 4492 | CopyFrom(from); |
| 4493 | return *this; |
| 4494 | } |
| 4495 | #if LANG_CXX11 |
| 4496 | ConvolutionDimensionNumbers(ConvolutionDimensionNumbers&& from) noexcept |
| 4497 | : ConvolutionDimensionNumbers() { |
| 4498 | *this = ::std::move(from); |
| 4499 | } |
| 4500 | |
| 4501 | inline ConvolutionDimensionNumbers& operator=(ConvolutionDimensionNumbers&& from) noexcept { |
| 4502 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 4503 | if (this != &from) InternalSwap(&from); |
| 4504 | } else { |
| 4505 | CopyFrom(from); |
| 4506 | } |
| 4507 | return *this; |
| 4508 | } |
| 4509 | #endif |
| 4510 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 4511 | return GetArenaNoVirtual(); |
| 4512 | } |
| 4513 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 4514 | return MaybeArenaPtr(); |
| 4515 | } |
| 4516 | static const ::google::protobuf::Descriptor* descriptor(); |
| 4517 | static const ConvolutionDimensionNumbers& default_instance(); |
| 4518 | |
| 4519 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 4520 | static inline const ConvolutionDimensionNumbers* internal_default_instance() { |
| 4521 | return reinterpret_cast<const ConvolutionDimensionNumbers*>( |
| 4522 | &_ConvolutionDimensionNumbers_default_instance_); |
| 4523 | } |
| 4524 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 4525 | 25; |
| 4526 | |
| 4527 | void UnsafeArenaSwap(ConvolutionDimensionNumbers* other); |
| 4528 | void Swap(ConvolutionDimensionNumbers* other); |
| 4529 | friend void swap(ConvolutionDimensionNumbers& a, ConvolutionDimensionNumbers& b) { |
| 4530 | a.Swap(&b); |
| 4531 | } |
| 4532 | |
| 4533 | // implements Message ---------------------------------------------- |
| 4534 | |
| 4535 | inline ConvolutionDimensionNumbers* New() const PROTOBUF_FINAL { |
| 4536 | return ::google::protobuf::Arena::CreateMessage<ConvolutionDimensionNumbers>(NULL); |
| 4537 | } |
| 4538 | |
| 4539 | ConvolutionDimensionNumbers* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 4540 | return ::google::protobuf::Arena::CreateMessage<ConvolutionDimensionNumbers>(arena); |
| 4541 | } |
| 4542 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4543 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4544 | void CopyFrom(const ConvolutionDimensionNumbers& from); |
| 4545 | void MergeFrom(const ConvolutionDimensionNumbers& from); |
| 4546 | void Clear() PROTOBUF_FINAL; |
| 4547 | bool IsInitialized() const PROTOBUF_FINAL; |
| 4548 | |
| 4549 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 4550 | bool MergePartialFromCodedStream( |
| 4551 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 4552 | void SerializeWithCachedSizes( |
| 4553 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 4554 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 4555 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 4556 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 4557 | private: |
| 4558 | void SharedCtor(); |
| 4559 | void SharedDtor(); |
| 4560 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 4561 | void InternalSwap(ConvolutionDimensionNumbers* other); |
| 4562 | protected: |
| 4563 | explicit ConvolutionDimensionNumbers(::google::protobuf::Arena* arena); |
| 4564 | private: |
| 4565 | static void ArenaDtor(void* object); |
| 4566 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 4567 | private: |
| 4568 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 4569 | return _internal_metadata_.arena(); |
| 4570 | } |
| 4571 | inline void* MaybeArenaPtr() const { |
| 4572 | return _internal_metadata_.raw_arena_ptr(); |
| 4573 | } |
| 4574 | public: |
| 4575 | |
| 4576 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 4577 | |
| 4578 | // nested types ---------------------------------------------------- |
| 4579 | |
| 4580 | // accessors ------------------------------------------------------- |
| 4581 | |
| 4582 | // repeated int64 kernel_spatial_dimensions = 6; |
| 4583 | int kernel_spatial_dimensions_size() const; |
| 4584 | void clear_kernel_spatial_dimensions(); |
| 4585 | static const int kKernelSpatialDimensionsFieldNumber = 6; |
| 4586 | ::google::protobuf::int64 kernel_spatial_dimensions(int index) const; |
| 4587 | void set_kernel_spatial_dimensions(int index, ::google::protobuf::int64 value); |
| 4588 | void add_kernel_spatial_dimensions(::google::protobuf::int64 value); |
| 4589 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4590 | kernel_spatial_dimensions() const; |
| 4591 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4592 | mutable_kernel_spatial_dimensions(); |
| 4593 | |
| 4594 | // repeated int64 input_spatial_dimensions = 11; |
| 4595 | int input_spatial_dimensions_size() const; |
| 4596 | void clear_input_spatial_dimensions(); |
| 4597 | static const int kInputSpatialDimensionsFieldNumber = 11; |
| 4598 | ::google::protobuf::int64 input_spatial_dimensions(int index) const; |
| 4599 | void set_input_spatial_dimensions(int index, ::google::protobuf::int64 value); |
| 4600 | void add_input_spatial_dimensions(::google::protobuf::int64 value); |
| 4601 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4602 | input_spatial_dimensions() const; |
| 4603 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4604 | mutable_input_spatial_dimensions(); |
| 4605 | |
| 4606 | // repeated int64 output_spatial_dimensions = 12; |
| 4607 | int output_spatial_dimensions_size() const; |
| 4608 | void clear_output_spatial_dimensions(); |
| 4609 | static const int kOutputSpatialDimensionsFieldNumber = 12; |
| 4610 | ::google::protobuf::int64 output_spatial_dimensions(int index) const; |
| 4611 | void set_output_spatial_dimensions(int index, ::google::protobuf::int64 value); |
| 4612 | void add_output_spatial_dimensions(::google::protobuf::int64 value); |
| 4613 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4614 | output_spatial_dimensions() const; |
| 4615 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4616 | mutable_output_spatial_dimensions(); |
| 4617 | |
| 4618 | // int64 kernel_input_feature_dimension = 3; |
| 4619 | void clear_kernel_input_feature_dimension(); |
| 4620 | static const int kKernelInputFeatureDimensionFieldNumber = 3; |
| 4621 | ::google::protobuf::int64 kernel_input_feature_dimension() const; |
| 4622 | void set_kernel_input_feature_dimension(::google::protobuf::int64 value); |
| 4623 | |
| 4624 | // int64 kernel_output_feature_dimension = 4; |
| 4625 | void clear_kernel_output_feature_dimension(); |
| 4626 | static const int kKernelOutputFeatureDimensionFieldNumber = 4; |
| 4627 | ::google::protobuf::int64 kernel_output_feature_dimension() const; |
| 4628 | void set_kernel_output_feature_dimension(::google::protobuf::int64 value); |
| 4629 | |
| 4630 | // int64 input_batch_dimension = 7; |
| 4631 | void clear_input_batch_dimension(); |
| 4632 | static const int kInputBatchDimensionFieldNumber = 7; |
| 4633 | ::google::protobuf::int64 input_batch_dimension() const; |
| 4634 | void set_input_batch_dimension(::google::protobuf::int64 value); |
| 4635 | |
| 4636 | // int64 input_feature_dimension = 8; |
| 4637 | void clear_input_feature_dimension(); |
| 4638 | static const int kInputFeatureDimensionFieldNumber = 8; |
| 4639 | ::google::protobuf::int64 input_feature_dimension() const; |
| 4640 | void set_input_feature_dimension(::google::protobuf::int64 value); |
| 4641 | |
| 4642 | // int64 output_batch_dimension = 9; |
| 4643 | void clear_output_batch_dimension(); |
| 4644 | static const int kOutputBatchDimensionFieldNumber = 9; |
| 4645 | ::google::protobuf::int64 output_batch_dimension() const; |
| 4646 | void set_output_batch_dimension(::google::protobuf::int64 value); |
| 4647 | |
| 4648 | // int64 output_feature_dimension = 10; |
| 4649 | void clear_output_feature_dimension(); |
| 4650 | static const int kOutputFeatureDimensionFieldNumber = 10; |
| 4651 | ::google::protobuf::int64 output_feature_dimension() const; |
| 4652 | void set_output_feature_dimension(::google::protobuf::int64 value); |
| 4653 | |
| 4654 | // @@protoc_insertion_point(class_scope:xla.ConvolutionDimensionNumbers) |
| 4655 | private: |
| 4656 | |
| 4657 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4658 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4659 | typedef void InternalArenaConstructable_; |
| 4660 | typedef void DestructorSkippable_; |
| 4661 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > kernel_spatial_dimensions_; |
| 4662 | mutable int _kernel_spatial_dimensions_cached_byte_size_; |
| 4663 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > input_spatial_dimensions_; |
| 4664 | mutable int _input_spatial_dimensions_cached_byte_size_; |
| 4665 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > output_spatial_dimensions_; |
| 4666 | mutable int _output_spatial_dimensions_cached_byte_size_; |
| 4667 | ::google::protobuf::int64 kernel_input_feature_dimension_; |
| 4668 | ::google::protobuf::int64 kernel_output_feature_dimension_; |
| 4669 | ::google::protobuf::int64 input_batch_dimension_; |
| 4670 | ::google::protobuf::int64 input_feature_dimension_; |
| 4671 | ::google::protobuf::int64 output_batch_dimension_; |
| 4672 | ::google::protobuf::int64 output_feature_dimension_; |
| 4673 | mutable int _cached_size_; |
| 4674 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4675 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsConvolutionDimensionNumbersImpl(); |
| 4676 | }; |
| 4677 | // ------------------------------------------------------------------- |
| 4678 | |
| 4679 | class ConvolveRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConvolveRequest) */ { |
| 4680 | public: |
| 4681 | ConvolveRequest(); |
| 4682 | virtual ~ConvolveRequest(); |
| 4683 | |
| 4684 | ConvolveRequest(const ConvolveRequest& from); |
| 4685 | |
| 4686 | inline ConvolveRequest& operator=(const ConvolveRequest& from) { |
| 4687 | CopyFrom(from); |
| 4688 | return *this; |
| 4689 | } |
| 4690 | #if LANG_CXX11 |
| 4691 | ConvolveRequest(ConvolveRequest&& from) noexcept |
| 4692 | : ConvolveRequest() { |
| 4693 | *this = ::std::move(from); |
| 4694 | } |
| 4695 | |
| 4696 | inline ConvolveRequest& operator=(ConvolveRequest&& from) noexcept { |
| 4697 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 4698 | if (this != &from) InternalSwap(&from); |
| 4699 | } else { |
| 4700 | CopyFrom(from); |
| 4701 | } |
| 4702 | return *this; |
| 4703 | } |
| 4704 | #endif |
| 4705 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 4706 | return GetArenaNoVirtual(); |
| 4707 | } |
| 4708 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 4709 | return MaybeArenaPtr(); |
| 4710 | } |
| 4711 | static const ::google::protobuf::Descriptor* descriptor(); |
| 4712 | static const ConvolveRequest& default_instance(); |
| 4713 | |
| 4714 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 4715 | static inline const ConvolveRequest* internal_default_instance() { |
| 4716 | return reinterpret_cast<const ConvolveRequest*>( |
| 4717 | &_ConvolveRequest_default_instance_); |
| 4718 | } |
| 4719 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 4720 | 26; |
| 4721 | |
| 4722 | void UnsafeArenaSwap(ConvolveRequest* other); |
| 4723 | void Swap(ConvolveRequest* other); |
| 4724 | friend void swap(ConvolveRequest& a, ConvolveRequest& b) { |
| 4725 | a.Swap(&b); |
| 4726 | } |
| 4727 | |
| 4728 | // implements Message ---------------------------------------------- |
| 4729 | |
| 4730 | inline ConvolveRequest* New() const PROTOBUF_FINAL { |
| 4731 | return ::google::protobuf::Arena::CreateMessage<ConvolveRequest>(NULL); |
| 4732 | } |
| 4733 | |
| 4734 | ConvolveRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 4735 | return ::google::protobuf::Arena::CreateMessage<ConvolveRequest>(arena); |
| 4736 | } |
| 4737 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4738 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4739 | void CopyFrom(const ConvolveRequest& from); |
| 4740 | void MergeFrom(const ConvolveRequest& from); |
| 4741 | void Clear() PROTOBUF_FINAL; |
| 4742 | bool IsInitialized() const PROTOBUF_FINAL; |
| 4743 | |
| 4744 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 4745 | bool MergePartialFromCodedStream( |
| 4746 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 4747 | void SerializeWithCachedSizes( |
| 4748 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 4749 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 4750 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 4751 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 4752 | private: |
| 4753 | void SharedCtor(); |
| 4754 | void SharedDtor(); |
| 4755 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 4756 | void InternalSwap(ConvolveRequest* other); |
| 4757 | protected: |
| 4758 | explicit ConvolveRequest(::google::protobuf::Arena* arena); |
| 4759 | private: |
| 4760 | static void ArenaDtor(void* object); |
| 4761 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 4762 | private: |
| 4763 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 4764 | return _internal_metadata_.arena(); |
| 4765 | } |
| 4766 | inline void* MaybeArenaPtr() const { |
| 4767 | return _internal_metadata_.raw_arena_ptr(); |
| 4768 | } |
| 4769 | public: |
| 4770 | |
| 4771 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 4772 | |
| 4773 | // nested types ---------------------------------------------------- |
| 4774 | |
| 4775 | // accessors ------------------------------------------------------- |
| 4776 | |
| 4777 | // .xla.ComputationDataHandle lhs = 2; |
| 4778 | bool has_lhs() const; |
| 4779 | void clear_lhs(); |
| 4780 | static const int kLhsFieldNumber = 2; |
| 4781 | const ::xla::ComputationDataHandle& lhs() const; |
| 4782 | ::xla::ComputationDataHandle* release_lhs(); |
| 4783 | ::xla::ComputationDataHandle* mutable_lhs(); |
| 4784 | void set_allocated_lhs(::xla::ComputationDataHandle* lhs); |
| 4785 | void unsafe_arena_set_allocated_lhs( |
| 4786 | ::xla::ComputationDataHandle* lhs); |
| 4787 | ::xla::ComputationDataHandle* unsafe_arena_release_lhs(); |
| 4788 | |
| 4789 | // .xla.ComputationDataHandle rhs = 3; |
| 4790 | bool has_rhs() const; |
| 4791 | void clear_rhs(); |
| 4792 | static const int kRhsFieldNumber = 3; |
| 4793 | const ::xla::ComputationDataHandle& rhs() const; |
| 4794 | ::xla::ComputationDataHandle* release_rhs(); |
| 4795 | ::xla::ComputationDataHandle* mutable_rhs(); |
| 4796 | void set_allocated_rhs(::xla::ComputationDataHandle* rhs); |
| 4797 | void unsafe_arena_set_allocated_rhs( |
| 4798 | ::xla::ComputationDataHandle* rhs); |
| 4799 | ::xla::ComputationDataHandle* unsafe_arena_release_rhs(); |
| 4800 | |
| 4801 | // .xla.Window window = 4; |
| 4802 | bool has_window() const; |
| 4803 | void clear_window(); |
| 4804 | static const int kWindowFieldNumber = 4; |
| 4805 | const ::xla::Window& window() const; |
| 4806 | ::xla::Window* release_window(); |
| 4807 | ::xla::Window* mutable_window(); |
| 4808 | void set_allocated_window(::xla::Window* window); |
| 4809 | void unsafe_arena_set_allocated_window( |
| 4810 | ::xla::Window* window); |
| 4811 | ::xla::Window* unsafe_arena_release_window(); |
| 4812 | |
| 4813 | // .xla.ConvolutionDimensionNumbers dimension_numbers = 5; |
| 4814 | bool has_dimension_numbers() const; |
| 4815 | void clear_dimension_numbers(); |
| 4816 | static const int kDimensionNumbersFieldNumber = 5; |
| 4817 | const ::xla::ConvolutionDimensionNumbers& dimension_numbers() const; |
| 4818 | ::xla::ConvolutionDimensionNumbers* release_dimension_numbers(); |
| 4819 | ::xla::ConvolutionDimensionNumbers* mutable_dimension_numbers(); |
| 4820 | void set_allocated_dimension_numbers(::xla::ConvolutionDimensionNumbers* dimension_numbers); |
| 4821 | void unsafe_arena_set_allocated_dimension_numbers( |
| 4822 | ::xla::ConvolutionDimensionNumbers* dimension_numbers); |
| 4823 | ::xla::ConvolutionDimensionNumbers* unsafe_arena_release_dimension_numbers(); |
| 4824 | |
| 4825 | // @@protoc_insertion_point(class_scope:xla.ConvolveRequest) |
| 4826 | private: |
| 4827 | |
| 4828 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4829 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4830 | typedef void InternalArenaConstructable_; |
| 4831 | typedef void DestructorSkippable_; |
| 4832 | ::xla::ComputationDataHandle* lhs_; |
| 4833 | ::xla::ComputationDataHandle* rhs_; |
| 4834 | ::xla::Window* window_; |
| 4835 | ::xla::ConvolutionDimensionNumbers* dimension_numbers_; |
| 4836 | mutable int _cached_size_; |
| 4837 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4838 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsConvolveRequestImpl(); |
| 4839 | }; |
| 4840 | // ------------------------------------------------------------------- |
| 4841 | |
| 4842 | class FftRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.FftRequest) */ { |
| 4843 | public: |
| 4844 | FftRequest(); |
| 4845 | virtual ~FftRequest(); |
| 4846 | |
| 4847 | FftRequest(const FftRequest& from); |
| 4848 | |
| 4849 | inline FftRequest& operator=(const FftRequest& from) { |
| 4850 | CopyFrom(from); |
| 4851 | return *this; |
| 4852 | } |
| 4853 | #if LANG_CXX11 |
| 4854 | FftRequest(FftRequest&& from) noexcept |
| 4855 | : FftRequest() { |
| 4856 | *this = ::std::move(from); |
| 4857 | } |
| 4858 | |
| 4859 | inline FftRequest& operator=(FftRequest&& from) noexcept { |
| 4860 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 4861 | if (this != &from) InternalSwap(&from); |
| 4862 | } else { |
| 4863 | CopyFrom(from); |
| 4864 | } |
| 4865 | return *this; |
| 4866 | } |
| 4867 | #endif |
| 4868 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 4869 | return GetArenaNoVirtual(); |
| 4870 | } |
| 4871 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 4872 | return MaybeArenaPtr(); |
| 4873 | } |
| 4874 | static const ::google::protobuf::Descriptor* descriptor(); |
| 4875 | static const FftRequest& default_instance(); |
| 4876 | |
| 4877 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 4878 | static inline const FftRequest* internal_default_instance() { |
| 4879 | return reinterpret_cast<const FftRequest*>( |
| 4880 | &_FftRequest_default_instance_); |
| 4881 | } |
| 4882 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 4883 | 27; |
| 4884 | |
| 4885 | void UnsafeArenaSwap(FftRequest* other); |
| 4886 | void Swap(FftRequest* other); |
| 4887 | friend void swap(FftRequest& a, FftRequest& b) { |
| 4888 | a.Swap(&b); |
| 4889 | } |
| 4890 | |
| 4891 | // implements Message ---------------------------------------------- |
| 4892 | |
| 4893 | inline FftRequest* New() const PROTOBUF_FINAL { |
| 4894 | return ::google::protobuf::Arena::CreateMessage<FftRequest>(NULL); |
| 4895 | } |
| 4896 | |
| 4897 | FftRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 4898 | return ::google::protobuf::Arena::CreateMessage<FftRequest>(arena); |
| 4899 | } |
| 4900 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4901 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 4902 | void CopyFrom(const FftRequest& from); |
| 4903 | void MergeFrom(const FftRequest& from); |
| 4904 | void Clear() PROTOBUF_FINAL; |
| 4905 | bool IsInitialized() const PROTOBUF_FINAL; |
| 4906 | |
| 4907 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 4908 | bool MergePartialFromCodedStream( |
| 4909 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 4910 | void SerializeWithCachedSizes( |
| 4911 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 4912 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 4913 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 4914 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 4915 | private: |
| 4916 | void SharedCtor(); |
| 4917 | void SharedDtor(); |
| 4918 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 4919 | void InternalSwap(FftRequest* other); |
| 4920 | protected: |
| 4921 | explicit FftRequest(::google::protobuf::Arena* arena); |
| 4922 | private: |
| 4923 | static void ArenaDtor(void* object); |
| 4924 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 4925 | private: |
| 4926 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 4927 | return _internal_metadata_.arena(); |
| 4928 | } |
| 4929 | inline void* MaybeArenaPtr() const { |
| 4930 | return _internal_metadata_.raw_arena_ptr(); |
| 4931 | } |
| 4932 | public: |
| 4933 | |
| 4934 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 4935 | |
| 4936 | // nested types ---------------------------------------------------- |
| 4937 | |
| 4938 | // accessors ------------------------------------------------------- |
| 4939 | |
| 4940 | // repeated int64 fft_length = 2; |
| 4941 | int fft_length_size() const; |
| 4942 | void clear_fft_length(); |
| 4943 | static const int kFftLengthFieldNumber = 2; |
| 4944 | ::google::protobuf::int64 fft_length(int index) const; |
| 4945 | void set_fft_length(int index, ::google::protobuf::int64 value); |
| 4946 | void add_fft_length(::google::protobuf::int64 value); |
| 4947 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 4948 | fft_length() const; |
| 4949 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 4950 | mutable_fft_length(); |
| 4951 | |
| 4952 | // .xla.ComputationDataHandle operand = 3; |
| 4953 | bool has_operand() const; |
| 4954 | void clear_operand(); |
| 4955 | static const int kOperandFieldNumber = 3; |
| 4956 | const ::xla::ComputationDataHandle& operand() const; |
| 4957 | ::xla::ComputationDataHandle* release_operand(); |
| 4958 | ::xla::ComputationDataHandle* mutable_operand(); |
| 4959 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 4960 | void unsafe_arena_set_allocated_operand( |
| 4961 | ::xla::ComputationDataHandle* operand); |
| 4962 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 4963 | |
| 4964 | // .xla.FftType fft_type = 1; |
| 4965 | void clear_fft_type(); |
| 4966 | static const int kFftTypeFieldNumber = 1; |
| 4967 | ::xla::FftType fft_type() const; |
| 4968 | void set_fft_type(::xla::FftType value); |
| 4969 | |
| 4970 | // @@protoc_insertion_point(class_scope:xla.FftRequest) |
| 4971 | private: |
| 4972 | |
| 4973 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 4974 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 4975 | typedef void InternalArenaConstructable_; |
| 4976 | typedef void DestructorSkippable_; |
| 4977 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > fft_length_; |
| 4978 | mutable int _fft_length_cached_byte_size_; |
| 4979 | ::xla::ComputationDataHandle* operand_; |
| 4980 | int fft_type_; |
| 4981 | mutable int _cached_size_; |
| 4982 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 4983 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsFftRequestImpl(); |
| 4984 | }; |
| 4985 | // ------------------------------------------------------------------- |
| 4986 | |
| 4987 | class InfeedRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.InfeedRequest) */ { |
| 4988 | public: |
| 4989 | InfeedRequest(); |
| 4990 | virtual ~InfeedRequest(); |
| 4991 | |
| 4992 | InfeedRequest(const InfeedRequest& from); |
| 4993 | |
| 4994 | inline InfeedRequest& operator=(const InfeedRequest& from) { |
| 4995 | CopyFrom(from); |
| 4996 | return *this; |
| 4997 | } |
| 4998 | #if LANG_CXX11 |
| 4999 | InfeedRequest(InfeedRequest&& from) noexcept |
| 5000 | : InfeedRequest() { |
| 5001 | *this = ::std::move(from); |
| 5002 | } |
| 5003 | |
| 5004 | inline InfeedRequest& operator=(InfeedRequest&& from) noexcept { |
| 5005 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5006 | if (this != &from) InternalSwap(&from); |
| 5007 | } else { |
| 5008 | CopyFrom(from); |
| 5009 | } |
| 5010 | return *this; |
| 5011 | } |
| 5012 | #endif |
| 5013 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5014 | return GetArenaNoVirtual(); |
| 5015 | } |
| 5016 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5017 | return MaybeArenaPtr(); |
| 5018 | } |
| 5019 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5020 | static const InfeedRequest& default_instance(); |
| 5021 | |
| 5022 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5023 | static inline const InfeedRequest* internal_default_instance() { |
| 5024 | return reinterpret_cast<const InfeedRequest*>( |
| 5025 | &_InfeedRequest_default_instance_); |
| 5026 | } |
| 5027 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5028 | 28; |
| 5029 | |
| 5030 | void UnsafeArenaSwap(InfeedRequest* other); |
| 5031 | void Swap(InfeedRequest* other); |
| 5032 | friend void swap(InfeedRequest& a, InfeedRequest& b) { |
| 5033 | a.Swap(&b); |
| 5034 | } |
| 5035 | |
| 5036 | // implements Message ---------------------------------------------- |
| 5037 | |
| 5038 | inline InfeedRequest* New() const PROTOBUF_FINAL { |
| 5039 | return ::google::protobuf::Arena::CreateMessage<InfeedRequest>(NULL); |
| 5040 | } |
| 5041 | |
| 5042 | InfeedRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5043 | return ::google::protobuf::Arena::CreateMessage<InfeedRequest>(arena); |
| 5044 | } |
| 5045 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5046 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5047 | void CopyFrom(const InfeedRequest& from); |
| 5048 | void MergeFrom(const InfeedRequest& from); |
| 5049 | void Clear() PROTOBUF_FINAL; |
| 5050 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5051 | |
| 5052 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5053 | bool MergePartialFromCodedStream( |
| 5054 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5055 | void SerializeWithCachedSizes( |
| 5056 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5057 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 5058 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 5059 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 5060 | private: |
| 5061 | void SharedCtor(); |
| 5062 | void SharedDtor(); |
| 5063 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 5064 | void InternalSwap(InfeedRequest* other); |
| 5065 | protected: |
| 5066 | explicit InfeedRequest(::google::protobuf::Arena* arena); |
| 5067 | private: |
| 5068 | static void ArenaDtor(void* object); |
| 5069 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 5070 | private: |
| 5071 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 5072 | return _internal_metadata_.arena(); |
| 5073 | } |
| 5074 | inline void* MaybeArenaPtr() const { |
| 5075 | return _internal_metadata_.raw_arena_ptr(); |
| 5076 | } |
| 5077 | public: |
| 5078 | |
| 5079 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 5080 | |
| 5081 | // nested types ---------------------------------------------------- |
| 5082 | |
| 5083 | // accessors ------------------------------------------------------- |
| 5084 | |
| 5085 | // bytes config = 3; |
| 5086 | void clear_config(); |
| 5087 | static const int kConfigFieldNumber = 3; |
| 5088 | const ::std::string& config() const; |
| 5089 | void set_config(const ::std::string& value); |
| 5090 | #if LANG_CXX11 |
| 5091 | void set_config(::std::string&& value); |
| 5092 | #endif |
| 5093 | void set_config(const char* value); |
| 5094 | void set_config(const void* value, size_t size); |
| 5095 | ::std::string* mutable_config(); |
| 5096 | ::std::string* release_config(); |
| 5097 | void set_allocated_config(::std::string* config); |
| 5098 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5099 | " string fields are deprecated and will be removed in a" |
| 5100 | " future release." ) |
| 5101 | ::std::string* unsafe_arena_release_config(); |
| 5102 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5103 | " string fields are deprecated and will be removed in a" |
| 5104 | " future release." ) |
| 5105 | void unsafe_arena_set_allocated_config( |
| 5106 | ::std::string* config); |
| 5107 | |
| 5108 | // .xla.Shape shape = 2; |
| 5109 | bool has_shape() const; |
| 5110 | void clear_shape(); |
| 5111 | static const int kShapeFieldNumber = 2; |
| 5112 | const ::xla::Shape& shape() const; |
| 5113 | ::xla::Shape* release_shape(); |
| 5114 | ::xla::Shape* mutable_shape(); |
| 5115 | void set_allocated_shape(::xla::Shape* shape); |
| 5116 | void unsafe_arena_set_allocated_shape( |
| 5117 | ::xla::Shape* shape); |
| 5118 | ::xla::Shape* unsafe_arena_release_shape(); |
| 5119 | |
| 5120 | // @@protoc_insertion_point(class_scope:xla.InfeedRequest) |
| 5121 | private: |
| 5122 | |
| 5123 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 5124 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 5125 | typedef void InternalArenaConstructable_; |
| 5126 | typedef void DestructorSkippable_; |
| 5127 | ::google::protobuf::internal::ArenaStringPtr config_; |
| 5128 | ::xla::Shape* shape_; |
| 5129 | mutable int _cached_size_; |
| 5130 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 5131 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsInfeedRequestImpl(); |
| 5132 | }; |
| 5133 | // ------------------------------------------------------------------- |
| 5134 | |
| 5135 | class OutfeedRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OutfeedRequest) */ { |
| 5136 | public: |
| 5137 | OutfeedRequest(); |
| 5138 | virtual ~OutfeedRequest(); |
| 5139 | |
| 5140 | OutfeedRequest(const OutfeedRequest& from); |
| 5141 | |
| 5142 | inline OutfeedRequest& operator=(const OutfeedRequest& from) { |
| 5143 | CopyFrom(from); |
| 5144 | return *this; |
| 5145 | } |
| 5146 | #if LANG_CXX11 |
| 5147 | OutfeedRequest(OutfeedRequest&& from) noexcept |
| 5148 | : OutfeedRequest() { |
| 5149 | *this = ::std::move(from); |
| 5150 | } |
| 5151 | |
| 5152 | inline OutfeedRequest& operator=(OutfeedRequest&& from) noexcept { |
| 5153 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5154 | if (this != &from) InternalSwap(&from); |
| 5155 | } else { |
| 5156 | CopyFrom(from); |
| 5157 | } |
| 5158 | return *this; |
| 5159 | } |
| 5160 | #endif |
| 5161 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5162 | return GetArenaNoVirtual(); |
| 5163 | } |
| 5164 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5165 | return MaybeArenaPtr(); |
| 5166 | } |
| 5167 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5168 | static const OutfeedRequest& default_instance(); |
| 5169 | |
| 5170 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5171 | static inline const OutfeedRequest* internal_default_instance() { |
| 5172 | return reinterpret_cast<const OutfeedRequest*>( |
| 5173 | &_OutfeedRequest_default_instance_); |
| 5174 | } |
| 5175 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5176 | 29; |
| 5177 | |
| 5178 | void UnsafeArenaSwap(OutfeedRequest* other); |
| 5179 | void Swap(OutfeedRequest* other); |
| 5180 | friend void swap(OutfeedRequest& a, OutfeedRequest& b) { |
| 5181 | a.Swap(&b); |
| 5182 | } |
| 5183 | |
| 5184 | // implements Message ---------------------------------------------- |
| 5185 | |
| 5186 | inline OutfeedRequest* New() const PROTOBUF_FINAL { |
| 5187 | return ::google::protobuf::Arena::CreateMessage<OutfeedRequest>(NULL); |
| 5188 | } |
| 5189 | |
| 5190 | OutfeedRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5191 | return ::google::protobuf::Arena::CreateMessage<OutfeedRequest>(arena); |
| 5192 | } |
| 5193 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5194 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5195 | void CopyFrom(const OutfeedRequest& from); |
| 5196 | void MergeFrom(const OutfeedRequest& from); |
| 5197 | void Clear() PROTOBUF_FINAL; |
| 5198 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5199 | |
| 5200 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5201 | bool MergePartialFromCodedStream( |
| 5202 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5203 | void SerializeWithCachedSizes( |
| 5204 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5205 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 5206 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 5207 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 5208 | private: |
| 5209 | void SharedCtor(); |
| 5210 | void SharedDtor(); |
| 5211 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 5212 | void InternalSwap(OutfeedRequest* other); |
| 5213 | protected: |
| 5214 | explicit OutfeedRequest(::google::protobuf::Arena* arena); |
| 5215 | private: |
| 5216 | static void ArenaDtor(void* object); |
| 5217 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 5218 | private: |
| 5219 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 5220 | return _internal_metadata_.arena(); |
| 5221 | } |
| 5222 | inline void* MaybeArenaPtr() const { |
| 5223 | return _internal_metadata_.raw_arena_ptr(); |
| 5224 | } |
| 5225 | public: |
| 5226 | |
| 5227 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 5228 | |
| 5229 | // nested types ---------------------------------------------------- |
| 5230 | |
| 5231 | // accessors ------------------------------------------------------- |
| 5232 | |
| 5233 | // bytes outfeed_config = 3; |
| 5234 | void clear_outfeed_config(); |
| 5235 | static const int kOutfeedConfigFieldNumber = 3; |
| 5236 | const ::std::string& outfeed_config() const; |
| 5237 | void set_outfeed_config(const ::std::string& value); |
| 5238 | #if LANG_CXX11 |
| 5239 | void set_outfeed_config(::std::string&& value); |
| 5240 | #endif |
| 5241 | void set_outfeed_config(const char* value); |
| 5242 | void set_outfeed_config(const void* value, size_t size); |
| 5243 | ::std::string* mutable_outfeed_config(); |
| 5244 | ::std::string* release_outfeed_config(); |
| 5245 | void set_allocated_outfeed_config(::std::string* outfeed_config); |
| 5246 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5247 | " string fields are deprecated and will be removed in a" |
| 5248 | " future release." ) |
| 5249 | ::std::string* unsafe_arena_release_outfeed_config(); |
| 5250 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5251 | " string fields are deprecated and will be removed in a" |
| 5252 | " future release." ) |
| 5253 | void unsafe_arena_set_allocated_outfeed_config( |
| 5254 | ::std::string* outfeed_config); |
| 5255 | |
| 5256 | // .xla.Shape shape = 1; |
| 5257 | bool has_shape() const; |
| 5258 | void clear_shape(); |
| 5259 | static const int kShapeFieldNumber = 1; |
| 5260 | const ::xla::Shape& shape() const; |
| 5261 | ::xla::Shape* release_shape(); |
| 5262 | ::xla::Shape* mutable_shape(); |
| 5263 | void set_allocated_shape(::xla::Shape* shape); |
| 5264 | void unsafe_arena_set_allocated_shape( |
| 5265 | ::xla::Shape* shape); |
| 5266 | ::xla::Shape* unsafe_arena_release_shape(); |
| 5267 | |
| 5268 | // .xla.ComputationDataHandle operand = 2; |
| 5269 | bool has_operand() const; |
| 5270 | void clear_operand(); |
| 5271 | static const int kOperandFieldNumber = 2; |
| 5272 | const ::xla::ComputationDataHandle& operand() const; |
| 5273 | ::xla::ComputationDataHandle* release_operand(); |
| 5274 | ::xla::ComputationDataHandle* mutable_operand(); |
| 5275 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 5276 | void unsafe_arena_set_allocated_operand( |
| 5277 | ::xla::ComputationDataHandle* operand); |
| 5278 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 5279 | |
| 5280 | // @@protoc_insertion_point(class_scope:xla.OutfeedRequest) |
| 5281 | private: |
| 5282 | |
| 5283 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 5284 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 5285 | typedef void InternalArenaConstructable_; |
| 5286 | typedef void DestructorSkippable_; |
| 5287 | ::google::protobuf::internal::ArenaStringPtr outfeed_config_; |
| 5288 | ::xla::Shape* shape_; |
| 5289 | ::xla::ComputationDataHandle* operand_; |
| 5290 | mutable int _cached_size_; |
| 5291 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 5292 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsOutfeedRequestImpl(); |
| 5293 | }; |
| 5294 | // ------------------------------------------------------------------- |
| 5295 | |
| 5296 | class CallRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.CallRequest) */ { |
| 5297 | public: |
| 5298 | CallRequest(); |
| 5299 | virtual ~CallRequest(); |
| 5300 | |
| 5301 | CallRequest(const CallRequest& from); |
| 5302 | |
| 5303 | inline CallRequest& operator=(const CallRequest& from) { |
| 5304 | CopyFrom(from); |
| 5305 | return *this; |
| 5306 | } |
| 5307 | #if LANG_CXX11 |
| 5308 | CallRequest(CallRequest&& from) noexcept |
| 5309 | : CallRequest() { |
| 5310 | *this = ::std::move(from); |
| 5311 | } |
| 5312 | |
| 5313 | inline CallRequest& operator=(CallRequest&& from) noexcept { |
| 5314 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5315 | if (this != &from) InternalSwap(&from); |
| 5316 | } else { |
| 5317 | CopyFrom(from); |
| 5318 | } |
| 5319 | return *this; |
| 5320 | } |
| 5321 | #endif |
| 5322 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5323 | return GetArenaNoVirtual(); |
| 5324 | } |
| 5325 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5326 | return MaybeArenaPtr(); |
| 5327 | } |
| 5328 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5329 | static const CallRequest& default_instance(); |
| 5330 | |
| 5331 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5332 | static inline const CallRequest* internal_default_instance() { |
| 5333 | return reinterpret_cast<const CallRequest*>( |
| 5334 | &_CallRequest_default_instance_); |
| 5335 | } |
| 5336 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5337 | 30; |
| 5338 | |
| 5339 | void UnsafeArenaSwap(CallRequest* other); |
| 5340 | void Swap(CallRequest* other); |
| 5341 | friend void swap(CallRequest& a, CallRequest& b) { |
| 5342 | a.Swap(&b); |
| 5343 | } |
| 5344 | |
| 5345 | // implements Message ---------------------------------------------- |
| 5346 | |
| 5347 | inline CallRequest* New() const PROTOBUF_FINAL { |
| 5348 | return ::google::protobuf::Arena::CreateMessage<CallRequest>(NULL); |
| 5349 | } |
| 5350 | |
| 5351 | CallRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5352 | return ::google::protobuf::Arena::CreateMessage<CallRequest>(arena); |
| 5353 | } |
| 5354 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5355 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5356 | void CopyFrom(const CallRequest& from); |
| 5357 | void MergeFrom(const CallRequest& from); |
| 5358 | void Clear() PROTOBUF_FINAL; |
| 5359 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5360 | |
| 5361 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5362 | bool MergePartialFromCodedStream( |
| 5363 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5364 | void SerializeWithCachedSizes( |
| 5365 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5366 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 5367 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 5368 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 5369 | private: |
| 5370 | void SharedCtor(); |
| 5371 | void SharedDtor(); |
| 5372 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 5373 | void InternalSwap(CallRequest* other); |
| 5374 | protected: |
| 5375 | explicit CallRequest(::google::protobuf::Arena* arena); |
| 5376 | private: |
| 5377 | static void ArenaDtor(void* object); |
| 5378 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 5379 | private: |
| 5380 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 5381 | return _internal_metadata_.arena(); |
| 5382 | } |
| 5383 | inline void* MaybeArenaPtr() const { |
| 5384 | return _internal_metadata_.raw_arena_ptr(); |
| 5385 | } |
| 5386 | public: |
| 5387 | |
| 5388 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 5389 | |
| 5390 | // nested types ---------------------------------------------------- |
| 5391 | |
| 5392 | // accessors ------------------------------------------------------- |
| 5393 | |
| 5394 | // repeated .xla.ComputationDataHandle operands = 3; |
| 5395 | int operands_size() const; |
| 5396 | void clear_operands(); |
| 5397 | static const int kOperandsFieldNumber = 3; |
| 5398 | ::xla::ComputationDataHandle* mutable_operands(int index); |
| 5399 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 5400 | mutable_operands(); |
| 5401 | const ::xla::ComputationDataHandle& operands(int index) const; |
| 5402 | ::xla::ComputationDataHandle* add_operands(); |
| 5403 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 5404 | operands() const; |
| 5405 | |
| 5406 | // .xla.ComputationHandle to_apply = 2; |
| 5407 | bool has_to_apply() const; |
| 5408 | void clear_to_apply(); |
| 5409 | static const int kToApplyFieldNumber = 2; |
| 5410 | const ::xla::ComputationHandle& to_apply() const; |
| 5411 | ::xla::ComputationHandle* release_to_apply(); |
| 5412 | ::xla::ComputationHandle* mutable_to_apply(); |
| 5413 | void set_allocated_to_apply(::xla::ComputationHandle* to_apply); |
| 5414 | void unsafe_arena_set_allocated_to_apply( |
| 5415 | ::xla::ComputationHandle* to_apply); |
| 5416 | ::xla::ComputationHandle* unsafe_arena_release_to_apply(); |
| 5417 | |
| 5418 | // @@protoc_insertion_point(class_scope:xla.CallRequest) |
| 5419 | private: |
| 5420 | |
| 5421 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 5422 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 5423 | typedef void InternalArenaConstructable_; |
| 5424 | typedef void DestructorSkippable_; |
| 5425 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > operands_; |
| 5426 | ::xla::ComputationHandle* to_apply_; |
| 5427 | mutable int _cached_size_; |
| 5428 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 5429 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsCallRequestImpl(); |
| 5430 | }; |
| 5431 | // ------------------------------------------------------------------- |
| 5432 | |
| 5433 | class CustomCallRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.CustomCallRequest) */ { |
| 5434 | public: |
| 5435 | CustomCallRequest(); |
| 5436 | virtual ~CustomCallRequest(); |
| 5437 | |
| 5438 | CustomCallRequest(const CustomCallRequest& from); |
| 5439 | |
| 5440 | inline CustomCallRequest& operator=(const CustomCallRequest& from) { |
| 5441 | CopyFrom(from); |
| 5442 | return *this; |
| 5443 | } |
| 5444 | #if LANG_CXX11 |
| 5445 | CustomCallRequest(CustomCallRequest&& from) noexcept |
| 5446 | : CustomCallRequest() { |
| 5447 | *this = ::std::move(from); |
| 5448 | } |
| 5449 | |
| 5450 | inline CustomCallRequest& operator=(CustomCallRequest&& from) noexcept { |
| 5451 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5452 | if (this != &from) InternalSwap(&from); |
| 5453 | } else { |
| 5454 | CopyFrom(from); |
| 5455 | } |
| 5456 | return *this; |
| 5457 | } |
| 5458 | #endif |
| 5459 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5460 | return GetArenaNoVirtual(); |
| 5461 | } |
| 5462 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5463 | return MaybeArenaPtr(); |
| 5464 | } |
| 5465 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5466 | static const CustomCallRequest& default_instance(); |
| 5467 | |
| 5468 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5469 | static inline const CustomCallRequest* internal_default_instance() { |
| 5470 | return reinterpret_cast<const CustomCallRequest*>( |
| 5471 | &_CustomCallRequest_default_instance_); |
| 5472 | } |
| 5473 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5474 | 31; |
| 5475 | |
| 5476 | void UnsafeArenaSwap(CustomCallRequest* other); |
| 5477 | void Swap(CustomCallRequest* other); |
| 5478 | friend void swap(CustomCallRequest& a, CustomCallRequest& b) { |
| 5479 | a.Swap(&b); |
| 5480 | } |
| 5481 | |
| 5482 | // implements Message ---------------------------------------------- |
| 5483 | |
| 5484 | inline CustomCallRequest* New() const PROTOBUF_FINAL { |
| 5485 | return ::google::protobuf::Arena::CreateMessage<CustomCallRequest>(NULL); |
| 5486 | } |
| 5487 | |
| 5488 | CustomCallRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5489 | return ::google::protobuf::Arena::CreateMessage<CustomCallRequest>(arena); |
| 5490 | } |
| 5491 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5492 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5493 | void CopyFrom(const CustomCallRequest& from); |
| 5494 | void MergeFrom(const CustomCallRequest& from); |
| 5495 | void Clear() PROTOBUF_FINAL; |
| 5496 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5497 | |
| 5498 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5499 | bool MergePartialFromCodedStream( |
| 5500 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5501 | void SerializeWithCachedSizes( |
| 5502 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5503 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 5504 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 5505 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 5506 | private: |
| 5507 | void SharedCtor(); |
| 5508 | void SharedDtor(); |
| 5509 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 5510 | void InternalSwap(CustomCallRequest* other); |
| 5511 | protected: |
| 5512 | explicit CustomCallRequest(::google::protobuf::Arena* arena); |
| 5513 | private: |
| 5514 | static void ArenaDtor(void* object); |
| 5515 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 5516 | private: |
| 5517 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 5518 | return _internal_metadata_.arena(); |
| 5519 | } |
| 5520 | inline void* MaybeArenaPtr() const { |
| 5521 | return _internal_metadata_.raw_arena_ptr(); |
| 5522 | } |
| 5523 | public: |
| 5524 | |
| 5525 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 5526 | |
| 5527 | // nested types ---------------------------------------------------- |
| 5528 | |
| 5529 | // accessors ------------------------------------------------------- |
| 5530 | |
| 5531 | // repeated .xla.ComputationDataHandle operands = 3; |
| 5532 | int operands_size() const; |
| 5533 | void clear_operands(); |
| 5534 | static const int kOperandsFieldNumber = 3; |
| 5535 | ::xla::ComputationDataHandle* mutable_operands(int index); |
| 5536 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 5537 | mutable_operands(); |
| 5538 | const ::xla::ComputationDataHandle& operands(int index) const; |
| 5539 | ::xla::ComputationDataHandle* add_operands(); |
| 5540 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 5541 | operands() const; |
| 5542 | |
| 5543 | // string call_target_name = 2; |
| 5544 | void clear_call_target_name(); |
| 5545 | static const int kCallTargetNameFieldNumber = 2; |
| 5546 | const ::std::string& call_target_name() const; |
| 5547 | void set_call_target_name(const ::std::string& value); |
| 5548 | #if LANG_CXX11 |
| 5549 | void set_call_target_name(::std::string&& value); |
| 5550 | #endif |
| 5551 | void set_call_target_name(const char* value); |
| 5552 | void set_call_target_name(const char* value, size_t size); |
| 5553 | ::std::string* mutable_call_target_name(); |
| 5554 | ::std::string* release_call_target_name(); |
| 5555 | void set_allocated_call_target_name(::std::string* call_target_name); |
| 5556 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5557 | " string fields are deprecated and will be removed in a" |
| 5558 | " future release." ) |
| 5559 | ::std::string* unsafe_arena_release_call_target_name(); |
| 5560 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5561 | " string fields are deprecated and will be removed in a" |
| 5562 | " future release." ) |
| 5563 | void unsafe_arena_set_allocated_call_target_name( |
| 5564 | ::std::string* call_target_name); |
| 5565 | |
| 5566 | // .xla.Shape shape = 4; |
| 5567 | bool has_shape() const; |
| 5568 | void clear_shape(); |
| 5569 | static const int kShapeFieldNumber = 4; |
| 5570 | const ::xla::Shape& shape() const; |
| 5571 | ::xla::Shape* release_shape(); |
| 5572 | ::xla::Shape* mutable_shape(); |
| 5573 | void set_allocated_shape(::xla::Shape* shape); |
| 5574 | void unsafe_arena_set_allocated_shape( |
| 5575 | ::xla::Shape* shape); |
| 5576 | ::xla::Shape* unsafe_arena_release_shape(); |
| 5577 | |
| 5578 | // @@protoc_insertion_point(class_scope:xla.CustomCallRequest) |
| 5579 | private: |
| 5580 | |
| 5581 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 5582 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 5583 | typedef void InternalArenaConstructable_; |
| 5584 | typedef void DestructorSkippable_; |
| 5585 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > operands_; |
| 5586 | ::google::protobuf::internal::ArenaStringPtr call_target_name_; |
| 5587 | ::xla::Shape* shape_; |
| 5588 | mutable int _cached_size_; |
| 5589 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 5590 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsCustomCallRequestImpl(); |
| 5591 | }; |
| 5592 | // ------------------------------------------------------------------- |
| 5593 | |
| 5594 | class HostComputeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HostComputeRequest) */ { |
| 5595 | public: |
| 5596 | HostComputeRequest(); |
| 5597 | virtual ~HostComputeRequest(); |
| 5598 | |
| 5599 | HostComputeRequest(const HostComputeRequest& from); |
| 5600 | |
| 5601 | inline HostComputeRequest& operator=(const HostComputeRequest& from) { |
| 5602 | CopyFrom(from); |
| 5603 | return *this; |
| 5604 | } |
| 5605 | #if LANG_CXX11 |
| 5606 | HostComputeRequest(HostComputeRequest&& from) noexcept |
| 5607 | : HostComputeRequest() { |
| 5608 | *this = ::std::move(from); |
| 5609 | } |
| 5610 | |
| 5611 | inline HostComputeRequest& operator=(HostComputeRequest&& from) noexcept { |
| 5612 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5613 | if (this != &from) InternalSwap(&from); |
| 5614 | } else { |
| 5615 | CopyFrom(from); |
| 5616 | } |
| 5617 | return *this; |
| 5618 | } |
| 5619 | #endif |
| 5620 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5621 | return GetArenaNoVirtual(); |
| 5622 | } |
| 5623 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5624 | return MaybeArenaPtr(); |
| 5625 | } |
| 5626 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5627 | static const HostComputeRequest& default_instance(); |
| 5628 | |
| 5629 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5630 | static inline const HostComputeRequest* internal_default_instance() { |
| 5631 | return reinterpret_cast<const HostComputeRequest*>( |
| 5632 | &_HostComputeRequest_default_instance_); |
| 5633 | } |
| 5634 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5635 | 32; |
| 5636 | |
| 5637 | void UnsafeArenaSwap(HostComputeRequest* other); |
| 5638 | void Swap(HostComputeRequest* other); |
| 5639 | friend void swap(HostComputeRequest& a, HostComputeRequest& b) { |
| 5640 | a.Swap(&b); |
| 5641 | } |
| 5642 | |
| 5643 | // implements Message ---------------------------------------------- |
| 5644 | |
| 5645 | inline HostComputeRequest* New() const PROTOBUF_FINAL { |
| 5646 | return ::google::protobuf::Arena::CreateMessage<HostComputeRequest>(NULL); |
| 5647 | } |
| 5648 | |
| 5649 | HostComputeRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5650 | return ::google::protobuf::Arena::CreateMessage<HostComputeRequest>(arena); |
| 5651 | } |
| 5652 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5653 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5654 | void CopyFrom(const HostComputeRequest& from); |
| 5655 | void MergeFrom(const HostComputeRequest& from); |
| 5656 | void Clear() PROTOBUF_FINAL; |
| 5657 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5658 | |
| 5659 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5660 | bool MergePartialFromCodedStream( |
| 5661 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5662 | void SerializeWithCachedSizes( |
| 5663 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5664 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 5665 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 5666 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 5667 | private: |
| 5668 | void SharedCtor(); |
| 5669 | void SharedDtor(); |
| 5670 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 5671 | void InternalSwap(HostComputeRequest* other); |
| 5672 | protected: |
| 5673 | explicit HostComputeRequest(::google::protobuf::Arena* arena); |
| 5674 | private: |
| 5675 | static void ArenaDtor(void* object); |
| 5676 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 5677 | private: |
| 5678 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 5679 | return _internal_metadata_.arena(); |
| 5680 | } |
| 5681 | inline void* MaybeArenaPtr() const { |
| 5682 | return _internal_metadata_.raw_arena_ptr(); |
| 5683 | } |
| 5684 | public: |
| 5685 | |
| 5686 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 5687 | |
| 5688 | // nested types ---------------------------------------------------- |
| 5689 | |
| 5690 | // accessors ------------------------------------------------------- |
| 5691 | |
| 5692 | // repeated .xla.ComputationDataHandle operands = 1; |
| 5693 | int operands_size() const; |
| 5694 | void clear_operands(); |
| 5695 | static const int kOperandsFieldNumber = 1; |
| 5696 | ::xla::ComputationDataHandle* mutable_operands(int index); |
| 5697 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 5698 | mutable_operands(); |
| 5699 | const ::xla::ComputationDataHandle& operands(int index) const; |
| 5700 | ::xla::ComputationDataHandle* add_operands(); |
| 5701 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 5702 | operands() const; |
| 5703 | |
| 5704 | // string channel_name = 2; |
| 5705 | void clear_channel_name(); |
| 5706 | static const int kChannelNameFieldNumber = 2; |
| 5707 | const ::std::string& channel_name() const; |
| 5708 | void set_channel_name(const ::std::string& value); |
| 5709 | #if LANG_CXX11 |
| 5710 | void set_channel_name(::std::string&& value); |
| 5711 | #endif |
| 5712 | void set_channel_name(const char* value); |
| 5713 | void set_channel_name(const char* value, size_t size); |
| 5714 | ::std::string* mutable_channel_name(); |
| 5715 | ::std::string* release_channel_name(); |
| 5716 | void set_allocated_channel_name(::std::string* channel_name); |
| 5717 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5718 | " string fields are deprecated and will be removed in a" |
| 5719 | " future release." ) |
| 5720 | ::std::string* unsafe_arena_release_channel_name(); |
| 5721 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 5722 | " string fields are deprecated and will be removed in a" |
| 5723 | " future release." ) |
| 5724 | void unsafe_arena_set_allocated_channel_name( |
| 5725 | ::std::string* channel_name); |
| 5726 | |
| 5727 | // .xla.Shape shape = 4; |
| 5728 | bool has_shape() const; |
| 5729 | void clear_shape(); |
| 5730 | static const int kShapeFieldNumber = 4; |
| 5731 | const ::xla::Shape& shape() const; |
| 5732 | ::xla::Shape* release_shape(); |
| 5733 | ::xla::Shape* mutable_shape(); |
| 5734 | void set_allocated_shape(::xla::Shape* shape); |
| 5735 | void unsafe_arena_set_allocated_shape( |
| 5736 | ::xla::Shape* shape); |
| 5737 | ::xla::Shape* unsafe_arena_release_shape(); |
| 5738 | |
| 5739 | // int64 cost_estimate_ns = 3; |
| 5740 | void clear_cost_estimate_ns(); |
| 5741 | static const int kCostEstimateNsFieldNumber = 3; |
| 5742 | ::google::protobuf::int64 cost_estimate_ns() const; |
| 5743 | void set_cost_estimate_ns(::google::protobuf::int64 value); |
| 5744 | |
| 5745 | // @@protoc_insertion_point(class_scope:xla.HostComputeRequest) |
| 5746 | private: |
| 5747 | |
| 5748 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 5749 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 5750 | typedef void InternalArenaConstructable_; |
| 5751 | typedef void DestructorSkippable_; |
| 5752 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > operands_; |
| 5753 | ::google::protobuf::internal::ArenaStringPtr channel_name_; |
| 5754 | ::xla::Shape* shape_; |
| 5755 | ::google::protobuf::int64 cost_estimate_ns_; |
| 5756 | mutable int _cached_size_; |
| 5757 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 5758 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsHostComputeRequestImpl(); |
| 5759 | }; |
| 5760 | // ------------------------------------------------------------------- |
| 5761 | |
| 5762 | class DotDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DotDimensionNumbers) */ { |
| 5763 | public: |
| 5764 | DotDimensionNumbers(); |
| 5765 | virtual ~DotDimensionNumbers(); |
| 5766 | |
| 5767 | DotDimensionNumbers(const DotDimensionNumbers& from); |
| 5768 | |
| 5769 | inline DotDimensionNumbers& operator=(const DotDimensionNumbers& from) { |
| 5770 | CopyFrom(from); |
| 5771 | return *this; |
| 5772 | } |
| 5773 | #if LANG_CXX11 |
| 5774 | DotDimensionNumbers(DotDimensionNumbers&& from) noexcept |
| 5775 | : DotDimensionNumbers() { |
| 5776 | *this = ::std::move(from); |
| 5777 | } |
| 5778 | |
| 5779 | inline DotDimensionNumbers& operator=(DotDimensionNumbers&& from) noexcept { |
| 5780 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5781 | if (this != &from) InternalSwap(&from); |
| 5782 | } else { |
| 5783 | CopyFrom(from); |
| 5784 | } |
| 5785 | return *this; |
| 5786 | } |
| 5787 | #endif |
| 5788 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5789 | return GetArenaNoVirtual(); |
| 5790 | } |
| 5791 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5792 | return MaybeArenaPtr(); |
| 5793 | } |
| 5794 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5795 | static const DotDimensionNumbers& default_instance(); |
| 5796 | |
| 5797 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5798 | static inline const DotDimensionNumbers* internal_default_instance() { |
| 5799 | return reinterpret_cast<const DotDimensionNumbers*>( |
| 5800 | &_DotDimensionNumbers_default_instance_); |
| 5801 | } |
| 5802 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5803 | 33; |
| 5804 | |
| 5805 | void UnsafeArenaSwap(DotDimensionNumbers* other); |
| 5806 | void Swap(DotDimensionNumbers* other); |
| 5807 | friend void swap(DotDimensionNumbers& a, DotDimensionNumbers& b) { |
| 5808 | a.Swap(&b); |
| 5809 | } |
| 5810 | |
| 5811 | // implements Message ---------------------------------------------- |
| 5812 | |
| 5813 | inline DotDimensionNumbers* New() const PROTOBUF_FINAL { |
| 5814 | return ::google::protobuf::Arena::CreateMessage<DotDimensionNumbers>(NULL); |
| 5815 | } |
| 5816 | |
| 5817 | DotDimensionNumbers* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5818 | return ::google::protobuf::Arena::CreateMessage<DotDimensionNumbers>(arena); |
| 5819 | } |
| 5820 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5821 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5822 | void CopyFrom(const DotDimensionNumbers& from); |
| 5823 | void MergeFrom(const DotDimensionNumbers& from); |
| 5824 | void Clear() PROTOBUF_FINAL; |
| 5825 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5826 | |
| 5827 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5828 | bool MergePartialFromCodedStream( |
| 5829 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5830 | void SerializeWithCachedSizes( |
| 5831 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5832 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 5833 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 5834 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 5835 | private: |
| 5836 | void SharedCtor(); |
| 5837 | void SharedDtor(); |
| 5838 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 5839 | void InternalSwap(DotDimensionNumbers* other); |
| 5840 | protected: |
| 5841 | explicit DotDimensionNumbers(::google::protobuf::Arena* arena); |
| 5842 | private: |
| 5843 | static void ArenaDtor(void* object); |
| 5844 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 5845 | private: |
| 5846 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 5847 | return _internal_metadata_.arena(); |
| 5848 | } |
| 5849 | inline void* MaybeArenaPtr() const { |
| 5850 | return _internal_metadata_.raw_arena_ptr(); |
| 5851 | } |
| 5852 | public: |
| 5853 | |
| 5854 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 5855 | |
| 5856 | // nested types ---------------------------------------------------- |
| 5857 | |
| 5858 | // accessors ------------------------------------------------------- |
| 5859 | |
| 5860 | // repeated int64 lhs_contracting_dimensions = 1; |
| 5861 | int lhs_contracting_dimensions_size() const; |
| 5862 | void clear_lhs_contracting_dimensions(); |
| 5863 | static const int kLhsContractingDimensionsFieldNumber = 1; |
| 5864 | ::google::protobuf::int64 lhs_contracting_dimensions(int index) const; |
| 5865 | void set_lhs_contracting_dimensions(int index, ::google::protobuf::int64 value); |
| 5866 | void add_lhs_contracting_dimensions(::google::protobuf::int64 value); |
| 5867 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 5868 | lhs_contracting_dimensions() const; |
| 5869 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 5870 | mutable_lhs_contracting_dimensions(); |
| 5871 | |
| 5872 | // repeated int64 rhs_contracting_dimensions = 2; |
| 5873 | int rhs_contracting_dimensions_size() const; |
| 5874 | void clear_rhs_contracting_dimensions(); |
| 5875 | static const int kRhsContractingDimensionsFieldNumber = 2; |
| 5876 | ::google::protobuf::int64 rhs_contracting_dimensions(int index) const; |
| 5877 | void set_rhs_contracting_dimensions(int index, ::google::protobuf::int64 value); |
| 5878 | void add_rhs_contracting_dimensions(::google::protobuf::int64 value); |
| 5879 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 5880 | rhs_contracting_dimensions() const; |
| 5881 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 5882 | mutable_rhs_contracting_dimensions(); |
| 5883 | |
| 5884 | // repeated int64 lhs_batch_dimensions = 3; |
| 5885 | int lhs_batch_dimensions_size() const; |
| 5886 | void clear_lhs_batch_dimensions(); |
| 5887 | static const int kLhsBatchDimensionsFieldNumber = 3; |
| 5888 | ::google::protobuf::int64 lhs_batch_dimensions(int index) const; |
| 5889 | void set_lhs_batch_dimensions(int index, ::google::protobuf::int64 value); |
| 5890 | void add_lhs_batch_dimensions(::google::protobuf::int64 value); |
| 5891 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 5892 | lhs_batch_dimensions() const; |
| 5893 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 5894 | mutable_lhs_batch_dimensions(); |
| 5895 | |
| 5896 | // repeated int64 rhs_batch_dimensions = 4; |
| 5897 | int rhs_batch_dimensions_size() const; |
| 5898 | void clear_rhs_batch_dimensions(); |
| 5899 | static const int kRhsBatchDimensionsFieldNumber = 4; |
| 5900 | ::google::protobuf::int64 rhs_batch_dimensions(int index) const; |
| 5901 | void set_rhs_batch_dimensions(int index, ::google::protobuf::int64 value); |
| 5902 | void add_rhs_batch_dimensions(::google::protobuf::int64 value); |
| 5903 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 5904 | rhs_batch_dimensions() const; |
| 5905 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 5906 | mutable_rhs_batch_dimensions(); |
| 5907 | |
| 5908 | // @@protoc_insertion_point(class_scope:xla.DotDimensionNumbers) |
| 5909 | private: |
| 5910 | |
| 5911 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 5912 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 5913 | typedef void InternalArenaConstructable_; |
| 5914 | typedef void DestructorSkippable_; |
| 5915 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lhs_contracting_dimensions_; |
| 5916 | mutable int _lhs_contracting_dimensions_cached_byte_size_; |
| 5917 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rhs_contracting_dimensions_; |
| 5918 | mutable int _rhs_contracting_dimensions_cached_byte_size_; |
| 5919 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lhs_batch_dimensions_; |
| 5920 | mutable int _lhs_batch_dimensions_cached_byte_size_; |
| 5921 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rhs_batch_dimensions_; |
| 5922 | mutable int _rhs_batch_dimensions_cached_byte_size_; |
| 5923 | mutable int _cached_size_; |
| 5924 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 5925 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDotDimensionNumbersImpl(); |
| 5926 | }; |
| 5927 | // ------------------------------------------------------------------- |
| 5928 | |
| 5929 | class DotRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DotRequest) */ { |
| 5930 | public: |
| 5931 | DotRequest(); |
| 5932 | virtual ~DotRequest(); |
| 5933 | |
| 5934 | DotRequest(const DotRequest& from); |
| 5935 | |
| 5936 | inline DotRequest& operator=(const DotRequest& from) { |
| 5937 | CopyFrom(from); |
| 5938 | return *this; |
| 5939 | } |
| 5940 | #if LANG_CXX11 |
| 5941 | DotRequest(DotRequest&& from) noexcept |
| 5942 | : DotRequest() { |
| 5943 | *this = ::std::move(from); |
| 5944 | } |
| 5945 | |
| 5946 | inline DotRequest& operator=(DotRequest&& from) noexcept { |
| 5947 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 5948 | if (this != &from) InternalSwap(&from); |
| 5949 | } else { |
| 5950 | CopyFrom(from); |
| 5951 | } |
| 5952 | return *this; |
| 5953 | } |
| 5954 | #endif |
| 5955 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 5956 | return GetArenaNoVirtual(); |
| 5957 | } |
| 5958 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 5959 | return MaybeArenaPtr(); |
| 5960 | } |
| 5961 | static const ::google::protobuf::Descriptor* descriptor(); |
| 5962 | static const DotRequest& default_instance(); |
| 5963 | |
| 5964 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 5965 | static inline const DotRequest* internal_default_instance() { |
| 5966 | return reinterpret_cast<const DotRequest*>( |
| 5967 | &_DotRequest_default_instance_); |
| 5968 | } |
| 5969 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 5970 | 34; |
| 5971 | |
| 5972 | void UnsafeArenaSwap(DotRequest* other); |
| 5973 | void Swap(DotRequest* other); |
| 5974 | friend void swap(DotRequest& a, DotRequest& b) { |
| 5975 | a.Swap(&b); |
| 5976 | } |
| 5977 | |
| 5978 | // implements Message ---------------------------------------------- |
| 5979 | |
| 5980 | inline DotRequest* New() const PROTOBUF_FINAL { |
| 5981 | return ::google::protobuf::Arena::CreateMessage<DotRequest>(NULL); |
| 5982 | } |
| 5983 | |
| 5984 | DotRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 5985 | return ::google::protobuf::Arena::CreateMessage<DotRequest>(arena); |
| 5986 | } |
| 5987 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5988 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 5989 | void CopyFrom(const DotRequest& from); |
| 5990 | void MergeFrom(const DotRequest& from); |
| 5991 | void Clear() PROTOBUF_FINAL; |
| 5992 | bool IsInitialized() const PROTOBUF_FINAL; |
| 5993 | |
| 5994 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 5995 | bool MergePartialFromCodedStream( |
| 5996 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 5997 | void SerializeWithCachedSizes( |
| 5998 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 5999 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6000 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6001 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6002 | private: |
| 6003 | void SharedCtor(); |
| 6004 | void SharedDtor(); |
| 6005 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 6006 | void InternalSwap(DotRequest* other); |
| 6007 | protected: |
| 6008 | explicit DotRequest(::google::protobuf::Arena* arena); |
| 6009 | private: |
| 6010 | static void ArenaDtor(void* object); |
| 6011 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 6012 | private: |
| 6013 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 6014 | return _internal_metadata_.arena(); |
| 6015 | } |
| 6016 | inline void* MaybeArenaPtr() const { |
| 6017 | return _internal_metadata_.raw_arena_ptr(); |
| 6018 | } |
| 6019 | public: |
| 6020 | |
| 6021 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 6022 | |
| 6023 | // nested types ---------------------------------------------------- |
| 6024 | |
| 6025 | // accessors ------------------------------------------------------- |
| 6026 | |
| 6027 | // .xla.ComputationDataHandle lhs = 2; |
| 6028 | bool has_lhs() const; |
| 6029 | void clear_lhs(); |
| 6030 | static const int kLhsFieldNumber = 2; |
| 6031 | const ::xla::ComputationDataHandle& lhs() const; |
| 6032 | ::xla::ComputationDataHandle* release_lhs(); |
| 6033 | ::xla::ComputationDataHandle* mutable_lhs(); |
| 6034 | void set_allocated_lhs(::xla::ComputationDataHandle* lhs); |
| 6035 | void unsafe_arena_set_allocated_lhs( |
| 6036 | ::xla::ComputationDataHandle* lhs); |
| 6037 | ::xla::ComputationDataHandle* unsafe_arena_release_lhs(); |
| 6038 | |
| 6039 | // .xla.ComputationDataHandle rhs = 3; |
| 6040 | bool has_rhs() const; |
| 6041 | void clear_rhs(); |
| 6042 | static const int kRhsFieldNumber = 3; |
| 6043 | const ::xla::ComputationDataHandle& rhs() const; |
| 6044 | ::xla::ComputationDataHandle* release_rhs(); |
| 6045 | ::xla::ComputationDataHandle* mutable_rhs(); |
| 6046 | void set_allocated_rhs(::xla::ComputationDataHandle* rhs); |
| 6047 | void unsafe_arena_set_allocated_rhs( |
| 6048 | ::xla::ComputationDataHandle* rhs); |
| 6049 | ::xla::ComputationDataHandle* unsafe_arena_release_rhs(); |
| 6050 | |
| 6051 | // .xla.DotDimensionNumbers dimension_numbers = 4; |
| 6052 | bool has_dimension_numbers() const; |
| 6053 | void clear_dimension_numbers(); |
| 6054 | static const int kDimensionNumbersFieldNumber = 4; |
| 6055 | const ::xla::DotDimensionNumbers& dimension_numbers() const; |
| 6056 | ::xla::DotDimensionNumbers* release_dimension_numbers(); |
| 6057 | ::xla::DotDimensionNumbers* mutable_dimension_numbers(); |
| 6058 | void set_allocated_dimension_numbers(::xla::DotDimensionNumbers* dimension_numbers); |
| 6059 | void unsafe_arena_set_allocated_dimension_numbers( |
| 6060 | ::xla::DotDimensionNumbers* dimension_numbers); |
| 6061 | ::xla::DotDimensionNumbers* unsafe_arena_release_dimension_numbers(); |
| 6062 | |
| 6063 | // @@protoc_insertion_point(class_scope:xla.DotRequest) |
| 6064 | private: |
| 6065 | |
| 6066 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 6067 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 6068 | typedef void InternalArenaConstructable_; |
| 6069 | typedef void DestructorSkippable_; |
| 6070 | ::xla::ComputationDataHandle* lhs_; |
| 6071 | ::xla::ComputationDataHandle* rhs_; |
| 6072 | ::xla::DotDimensionNumbers* dimension_numbers_; |
| 6073 | mutable int _cached_size_; |
| 6074 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 6075 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsDotRequestImpl(); |
| 6076 | }; |
| 6077 | // ------------------------------------------------------------------- |
| 6078 | |
| 6079 | class MapRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.MapRequest) */ { |
| 6080 | public: |
| 6081 | MapRequest(); |
| 6082 | virtual ~MapRequest(); |
| 6083 | |
| 6084 | MapRequest(const MapRequest& from); |
| 6085 | |
| 6086 | inline MapRequest& operator=(const MapRequest& from) { |
| 6087 | CopyFrom(from); |
| 6088 | return *this; |
| 6089 | } |
| 6090 | #if LANG_CXX11 |
| 6091 | MapRequest(MapRequest&& from) noexcept |
| 6092 | : MapRequest() { |
| 6093 | *this = ::std::move(from); |
| 6094 | } |
| 6095 | |
| 6096 | inline MapRequest& operator=(MapRequest&& from) noexcept { |
| 6097 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 6098 | if (this != &from) InternalSwap(&from); |
| 6099 | } else { |
| 6100 | CopyFrom(from); |
| 6101 | } |
| 6102 | return *this; |
| 6103 | } |
| 6104 | #endif |
| 6105 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 6106 | return GetArenaNoVirtual(); |
| 6107 | } |
| 6108 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 6109 | return MaybeArenaPtr(); |
| 6110 | } |
| 6111 | static const ::google::protobuf::Descriptor* descriptor(); |
| 6112 | static const MapRequest& default_instance(); |
| 6113 | |
| 6114 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 6115 | static inline const MapRequest* internal_default_instance() { |
| 6116 | return reinterpret_cast<const MapRequest*>( |
| 6117 | &_MapRequest_default_instance_); |
| 6118 | } |
| 6119 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 6120 | 35; |
| 6121 | |
| 6122 | void UnsafeArenaSwap(MapRequest* other); |
| 6123 | void Swap(MapRequest* other); |
| 6124 | friend void swap(MapRequest& a, MapRequest& b) { |
| 6125 | a.Swap(&b); |
| 6126 | } |
| 6127 | |
| 6128 | // implements Message ---------------------------------------------- |
| 6129 | |
| 6130 | inline MapRequest* New() const PROTOBUF_FINAL { |
| 6131 | return ::google::protobuf::Arena::CreateMessage<MapRequest>(NULL); |
| 6132 | } |
| 6133 | |
| 6134 | MapRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 6135 | return ::google::protobuf::Arena::CreateMessage<MapRequest>(arena); |
| 6136 | } |
| 6137 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6138 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6139 | void CopyFrom(const MapRequest& from); |
| 6140 | void MergeFrom(const MapRequest& from); |
| 6141 | void Clear() PROTOBUF_FINAL; |
| 6142 | bool IsInitialized() const PROTOBUF_FINAL; |
| 6143 | |
| 6144 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 6145 | bool MergePartialFromCodedStream( |
| 6146 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 6147 | void SerializeWithCachedSizes( |
| 6148 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 6149 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6150 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6151 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6152 | private: |
| 6153 | void SharedCtor(); |
| 6154 | void SharedDtor(); |
| 6155 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 6156 | void InternalSwap(MapRequest* other); |
| 6157 | protected: |
| 6158 | explicit MapRequest(::google::protobuf::Arena* arena); |
| 6159 | private: |
| 6160 | static void ArenaDtor(void* object); |
| 6161 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 6162 | private: |
| 6163 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 6164 | return _internal_metadata_.arena(); |
| 6165 | } |
| 6166 | inline void* MaybeArenaPtr() const { |
| 6167 | return _internal_metadata_.raw_arena_ptr(); |
| 6168 | } |
| 6169 | public: |
| 6170 | |
| 6171 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 6172 | |
| 6173 | // nested types ---------------------------------------------------- |
| 6174 | |
| 6175 | // accessors ------------------------------------------------------- |
| 6176 | |
| 6177 | // repeated .xla.ComputationDataHandle operands = 2; |
| 6178 | int operands_size() const; |
| 6179 | void clear_operands(); |
| 6180 | static const int kOperandsFieldNumber = 2; |
| 6181 | ::xla::ComputationDataHandle* mutable_operands(int index); |
| 6182 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 6183 | mutable_operands(); |
| 6184 | const ::xla::ComputationDataHandle& operands(int index) const; |
| 6185 | ::xla::ComputationDataHandle* add_operands(); |
| 6186 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 6187 | operands() const; |
| 6188 | |
| 6189 | // repeated .xla.ComputationDataHandle static_operands = 4; |
| 6190 | int static_operands_size() const; |
| 6191 | void clear_static_operands(); |
| 6192 | static const int kStaticOperandsFieldNumber = 4; |
| 6193 | ::xla::ComputationDataHandle* mutable_static_operands(int index); |
| 6194 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 6195 | mutable_static_operands(); |
| 6196 | const ::xla::ComputationDataHandle& static_operands(int index) const; |
| 6197 | ::xla::ComputationDataHandle* add_static_operands(); |
| 6198 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 6199 | static_operands() const; |
| 6200 | |
| 6201 | // repeated int64 dimensions = 5; |
| 6202 | int dimensions_size() const; |
| 6203 | void clear_dimensions(); |
| 6204 | static const int kDimensionsFieldNumber = 5; |
| 6205 | ::google::protobuf::int64 dimensions(int index) const; |
| 6206 | void set_dimensions(int index, ::google::protobuf::int64 value); |
| 6207 | void add_dimensions(::google::protobuf::int64 value); |
| 6208 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 6209 | dimensions() const; |
| 6210 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 6211 | mutable_dimensions(); |
| 6212 | |
| 6213 | // .xla.ComputationHandle to_apply = 3; |
| 6214 | bool has_to_apply() const; |
| 6215 | void clear_to_apply(); |
| 6216 | static const int kToApplyFieldNumber = 3; |
| 6217 | const ::xla::ComputationHandle& to_apply() const; |
| 6218 | ::xla::ComputationHandle* release_to_apply(); |
| 6219 | ::xla::ComputationHandle* mutable_to_apply(); |
| 6220 | void set_allocated_to_apply(::xla::ComputationHandle* to_apply); |
| 6221 | void unsafe_arena_set_allocated_to_apply( |
| 6222 | ::xla::ComputationHandle* to_apply); |
| 6223 | ::xla::ComputationHandle* unsafe_arena_release_to_apply(); |
| 6224 | |
| 6225 | // @@protoc_insertion_point(class_scope:xla.MapRequest) |
| 6226 | private: |
| 6227 | |
| 6228 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 6229 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 6230 | typedef void InternalArenaConstructable_; |
| 6231 | typedef void DestructorSkippable_; |
| 6232 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > operands_; |
| 6233 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > static_operands_; |
| 6234 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; |
| 6235 | mutable int _dimensions_cached_byte_size_; |
| 6236 | ::xla::ComputationHandle* to_apply_; |
| 6237 | mutable int _cached_size_; |
| 6238 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 6239 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsMapRequestImpl(); |
| 6240 | }; |
| 6241 | // ------------------------------------------------------------------- |
| 6242 | |
| 6243 | class ReduceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ReduceRequest) */ { |
| 6244 | public: |
| 6245 | ReduceRequest(); |
| 6246 | virtual ~ReduceRequest(); |
| 6247 | |
| 6248 | ReduceRequest(const ReduceRequest& from); |
| 6249 | |
| 6250 | inline ReduceRequest& operator=(const ReduceRequest& from) { |
| 6251 | CopyFrom(from); |
| 6252 | return *this; |
| 6253 | } |
| 6254 | #if LANG_CXX11 |
| 6255 | ReduceRequest(ReduceRequest&& from) noexcept |
| 6256 | : ReduceRequest() { |
| 6257 | *this = ::std::move(from); |
| 6258 | } |
| 6259 | |
| 6260 | inline ReduceRequest& operator=(ReduceRequest&& from) noexcept { |
| 6261 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 6262 | if (this != &from) InternalSwap(&from); |
| 6263 | } else { |
| 6264 | CopyFrom(from); |
| 6265 | } |
| 6266 | return *this; |
| 6267 | } |
| 6268 | #endif |
| 6269 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 6270 | return GetArenaNoVirtual(); |
| 6271 | } |
| 6272 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 6273 | return MaybeArenaPtr(); |
| 6274 | } |
| 6275 | static const ::google::protobuf::Descriptor* descriptor(); |
| 6276 | static const ReduceRequest& default_instance(); |
| 6277 | |
| 6278 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 6279 | static inline const ReduceRequest* internal_default_instance() { |
| 6280 | return reinterpret_cast<const ReduceRequest*>( |
| 6281 | &_ReduceRequest_default_instance_); |
| 6282 | } |
| 6283 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 6284 | 36; |
| 6285 | |
| 6286 | void UnsafeArenaSwap(ReduceRequest* other); |
| 6287 | void Swap(ReduceRequest* other); |
| 6288 | friend void swap(ReduceRequest& a, ReduceRequest& b) { |
| 6289 | a.Swap(&b); |
| 6290 | } |
| 6291 | |
| 6292 | // implements Message ---------------------------------------------- |
| 6293 | |
| 6294 | inline ReduceRequest* New() const PROTOBUF_FINAL { |
| 6295 | return ::google::protobuf::Arena::CreateMessage<ReduceRequest>(NULL); |
| 6296 | } |
| 6297 | |
| 6298 | ReduceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 6299 | return ::google::protobuf::Arena::CreateMessage<ReduceRequest>(arena); |
| 6300 | } |
| 6301 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6302 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6303 | void CopyFrom(const ReduceRequest& from); |
| 6304 | void MergeFrom(const ReduceRequest& from); |
| 6305 | void Clear() PROTOBUF_FINAL; |
| 6306 | bool IsInitialized() const PROTOBUF_FINAL; |
| 6307 | |
| 6308 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 6309 | bool MergePartialFromCodedStream( |
| 6310 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 6311 | void SerializeWithCachedSizes( |
| 6312 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 6313 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6314 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6315 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6316 | private: |
| 6317 | void SharedCtor(); |
| 6318 | void SharedDtor(); |
| 6319 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 6320 | void InternalSwap(ReduceRequest* other); |
| 6321 | protected: |
| 6322 | explicit ReduceRequest(::google::protobuf::Arena* arena); |
| 6323 | private: |
| 6324 | static void ArenaDtor(void* object); |
| 6325 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 6326 | private: |
| 6327 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 6328 | return _internal_metadata_.arena(); |
| 6329 | } |
| 6330 | inline void* MaybeArenaPtr() const { |
| 6331 | return _internal_metadata_.raw_arena_ptr(); |
| 6332 | } |
| 6333 | public: |
| 6334 | |
| 6335 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 6336 | |
| 6337 | // nested types ---------------------------------------------------- |
| 6338 | |
| 6339 | // accessors ------------------------------------------------------- |
| 6340 | |
| 6341 | // repeated int64 dimensions = 4; |
| 6342 | int dimensions_size() const; |
| 6343 | void clear_dimensions(); |
| 6344 | static const int kDimensionsFieldNumber = 4; |
| 6345 | ::google::protobuf::int64 dimensions(int index) const; |
| 6346 | void set_dimensions(int index, ::google::protobuf::int64 value); |
| 6347 | void add_dimensions(::google::protobuf::int64 value); |
| 6348 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 6349 | dimensions() const; |
| 6350 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 6351 | mutable_dimensions(); |
| 6352 | |
| 6353 | // .xla.ComputationDataHandle operand = 2; |
| 6354 | bool has_operand() const; |
| 6355 | void clear_operand(); |
| 6356 | static const int kOperandFieldNumber = 2; |
| 6357 | const ::xla::ComputationDataHandle& operand() const; |
| 6358 | ::xla::ComputationDataHandle* release_operand(); |
| 6359 | ::xla::ComputationDataHandle* mutable_operand(); |
| 6360 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 6361 | void unsafe_arena_set_allocated_operand( |
| 6362 | ::xla::ComputationDataHandle* operand); |
| 6363 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 6364 | |
| 6365 | // .xla.ComputationDataHandle init_value = 3; |
| 6366 | bool has_init_value() const; |
| 6367 | void clear_init_value(); |
| 6368 | static const int kInitValueFieldNumber = 3; |
| 6369 | const ::xla::ComputationDataHandle& init_value() const; |
| 6370 | ::xla::ComputationDataHandle* release_init_value(); |
| 6371 | ::xla::ComputationDataHandle* mutable_init_value(); |
| 6372 | void set_allocated_init_value(::xla::ComputationDataHandle* init_value); |
| 6373 | void unsafe_arena_set_allocated_init_value( |
| 6374 | ::xla::ComputationDataHandle* init_value); |
| 6375 | ::xla::ComputationDataHandle* unsafe_arena_release_init_value(); |
| 6376 | |
| 6377 | // .xla.ComputationHandle to_apply = 5; |
| 6378 | bool has_to_apply() const; |
| 6379 | void clear_to_apply(); |
| 6380 | static const int kToApplyFieldNumber = 5; |
| 6381 | const ::xla::ComputationHandle& to_apply() const; |
| 6382 | ::xla::ComputationHandle* release_to_apply(); |
| 6383 | ::xla::ComputationHandle* mutable_to_apply(); |
| 6384 | void set_allocated_to_apply(::xla::ComputationHandle* to_apply); |
| 6385 | void unsafe_arena_set_allocated_to_apply( |
| 6386 | ::xla::ComputationHandle* to_apply); |
| 6387 | ::xla::ComputationHandle* unsafe_arena_release_to_apply(); |
| 6388 | |
| 6389 | // @@protoc_insertion_point(class_scope:xla.ReduceRequest) |
| 6390 | private: |
| 6391 | |
| 6392 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 6393 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 6394 | typedef void InternalArenaConstructable_; |
| 6395 | typedef void DestructorSkippable_; |
| 6396 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; |
| 6397 | mutable int _dimensions_cached_byte_size_; |
| 6398 | ::xla::ComputationDataHandle* operand_; |
| 6399 | ::xla::ComputationDataHandle* init_value_; |
| 6400 | ::xla::ComputationHandle* to_apply_; |
| 6401 | mutable int _cached_size_; |
| 6402 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 6403 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsReduceRequestImpl(); |
| 6404 | }; |
| 6405 | // ------------------------------------------------------------------- |
| 6406 | |
| 6407 | class ReduceWindowRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ReduceWindowRequest) */ { |
| 6408 | public: |
| 6409 | ReduceWindowRequest(); |
| 6410 | virtual ~ReduceWindowRequest(); |
| 6411 | |
| 6412 | ReduceWindowRequest(const ReduceWindowRequest& from); |
| 6413 | |
| 6414 | inline ReduceWindowRequest& operator=(const ReduceWindowRequest& from) { |
| 6415 | CopyFrom(from); |
| 6416 | return *this; |
| 6417 | } |
| 6418 | #if LANG_CXX11 |
| 6419 | ReduceWindowRequest(ReduceWindowRequest&& from) noexcept |
| 6420 | : ReduceWindowRequest() { |
| 6421 | *this = ::std::move(from); |
| 6422 | } |
| 6423 | |
| 6424 | inline ReduceWindowRequest& operator=(ReduceWindowRequest&& from) noexcept { |
| 6425 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 6426 | if (this != &from) InternalSwap(&from); |
| 6427 | } else { |
| 6428 | CopyFrom(from); |
| 6429 | } |
| 6430 | return *this; |
| 6431 | } |
| 6432 | #endif |
| 6433 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 6434 | return GetArenaNoVirtual(); |
| 6435 | } |
| 6436 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 6437 | return MaybeArenaPtr(); |
| 6438 | } |
| 6439 | static const ::google::protobuf::Descriptor* descriptor(); |
| 6440 | static const ReduceWindowRequest& default_instance(); |
| 6441 | |
| 6442 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 6443 | static inline const ReduceWindowRequest* internal_default_instance() { |
| 6444 | return reinterpret_cast<const ReduceWindowRequest*>( |
| 6445 | &_ReduceWindowRequest_default_instance_); |
| 6446 | } |
| 6447 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 6448 | 37; |
| 6449 | |
| 6450 | void UnsafeArenaSwap(ReduceWindowRequest* other); |
| 6451 | void Swap(ReduceWindowRequest* other); |
| 6452 | friend void swap(ReduceWindowRequest& a, ReduceWindowRequest& b) { |
| 6453 | a.Swap(&b); |
| 6454 | } |
| 6455 | |
| 6456 | // implements Message ---------------------------------------------- |
| 6457 | |
| 6458 | inline ReduceWindowRequest* New() const PROTOBUF_FINAL { |
| 6459 | return ::google::protobuf::Arena::CreateMessage<ReduceWindowRequest>(NULL); |
| 6460 | } |
| 6461 | |
| 6462 | ReduceWindowRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 6463 | return ::google::protobuf::Arena::CreateMessage<ReduceWindowRequest>(arena); |
| 6464 | } |
| 6465 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6466 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6467 | void CopyFrom(const ReduceWindowRequest& from); |
| 6468 | void MergeFrom(const ReduceWindowRequest& from); |
| 6469 | void Clear() PROTOBUF_FINAL; |
| 6470 | bool IsInitialized() const PROTOBUF_FINAL; |
| 6471 | |
| 6472 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 6473 | bool MergePartialFromCodedStream( |
| 6474 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 6475 | void SerializeWithCachedSizes( |
| 6476 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 6477 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6478 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6479 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6480 | private: |
| 6481 | void SharedCtor(); |
| 6482 | void SharedDtor(); |
| 6483 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 6484 | void InternalSwap(ReduceWindowRequest* other); |
| 6485 | protected: |
| 6486 | explicit ReduceWindowRequest(::google::protobuf::Arena* arena); |
| 6487 | private: |
| 6488 | static void ArenaDtor(void* object); |
| 6489 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 6490 | private: |
| 6491 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 6492 | return _internal_metadata_.arena(); |
| 6493 | } |
| 6494 | inline void* MaybeArenaPtr() const { |
| 6495 | return _internal_metadata_.raw_arena_ptr(); |
| 6496 | } |
| 6497 | public: |
| 6498 | |
| 6499 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 6500 | |
| 6501 | // nested types ---------------------------------------------------- |
| 6502 | |
| 6503 | // accessors ------------------------------------------------------- |
| 6504 | |
| 6505 | // .xla.ComputationDataHandle operand = 2; |
| 6506 | bool has_operand() const; |
| 6507 | void clear_operand(); |
| 6508 | static const int kOperandFieldNumber = 2; |
| 6509 | const ::xla::ComputationDataHandle& operand() const; |
| 6510 | ::xla::ComputationDataHandle* release_operand(); |
| 6511 | ::xla::ComputationDataHandle* mutable_operand(); |
| 6512 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 6513 | void unsafe_arena_set_allocated_operand( |
| 6514 | ::xla::ComputationDataHandle* operand); |
| 6515 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 6516 | |
| 6517 | // .xla.ComputationDataHandle init_value = 3; |
| 6518 | bool has_init_value() const; |
| 6519 | void clear_init_value(); |
| 6520 | static const int kInitValueFieldNumber = 3; |
| 6521 | const ::xla::ComputationDataHandle& init_value() const; |
| 6522 | ::xla::ComputationDataHandle* release_init_value(); |
| 6523 | ::xla::ComputationDataHandle* mutable_init_value(); |
| 6524 | void set_allocated_init_value(::xla::ComputationDataHandle* init_value); |
| 6525 | void unsafe_arena_set_allocated_init_value( |
| 6526 | ::xla::ComputationDataHandle* init_value); |
| 6527 | ::xla::ComputationDataHandle* unsafe_arena_release_init_value(); |
| 6528 | |
| 6529 | // .xla.Window window = 4; |
| 6530 | bool has_window() const; |
| 6531 | void clear_window(); |
| 6532 | static const int kWindowFieldNumber = 4; |
| 6533 | const ::xla::Window& window() const; |
| 6534 | ::xla::Window* release_window(); |
| 6535 | ::xla::Window* mutable_window(); |
| 6536 | void set_allocated_window(::xla::Window* window); |
| 6537 | void unsafe_arena_set_allocated_window( |
| 6538 | ::xla::Window* window); |
| 6539 | ::xla::Window* unsafe_arena_release_window(); |
| 6540 | |
| 6541 | // .xla.ComputationHandle to_apply = 5; |
| 6542 | bool has_to_apply() const; |
| 6543 | void clear_to_apply(); |
| 6544 | static const int kToApplyFieldNumber = 5; |
| 6545 | const ::xla::ComputationHandle& to_apply() const; |
| 6546 | ::xla::ComputationHandle* release_to_apply(); |
| 6547 | ::xla::ComputationHandle* mutable_to_apply(); |
| 6548 | void set_allocated_to_apply(::xla::ComputationHandle* to_apply); |
| 6549 | void unsafe_arena_set_allocated_to_apply( |
| 6550 | ::xla::ComputationHandle* to_apply); |
| 6551 | ::xla::ComputationHandle* unsafe_arena_release_to_apply(); |
| 6552 | |
| 6553 | // @@protoc_insertion_point(class_scope:xla.ReduceWindowRequest) |
| 6554 | private: |
| 6555 | |
| 6556 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 6557 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 6558 | typedef void InternalArenaConstructable_; |
| 6559 | typedef void DestructorSkippable_; |
| 6560 | ::xla::ComputationDataHandle* operand_; |
| 6561 | ::xla::ComputationDataHandle* init_value_; |
| 6562 | ::xla::Window* window_; |
| 6563 | ::xla::ComputationHandle* to_apply_; |
| 6564 | mutable int _cached_size_; |
| 6565 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 6566 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsReduceWindowRequestImpl(); |
| 6567 | }; |
| 6568 | // ------------------------------------------------------------------- |
| 6569 | |
| 6570 | class BatchNormTrainingRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BatchNormTrainingRequest) */ { |
| 6571 | public: |
| 6572 | BatchNormTrainingRequest(); |
| 6573 | virtual ~BatchNormTrainingRequest(); |
| 6574 | |
| 6575 | BatchNormTrainingRequest(const BatchNormTrainingRequest& from); |
| 6576 | |
| 6577 | inline BatchNormTrainingRequest& operator=(const BatchNormTrainingRequest& from) { |
| 6578 | CopyFrom(from); |
| 6579 | return *this; |
| 6580 | } |
| 6581 | #if LANG_CXX11 |
| 6582 | BatchNormTrainingRequest(BatchNormTrainingRequest&& from) noexcept |
| 6583 | : BatchNormTrainingRequest() { |
| 6584 | *this = ::std::move(from); |
| 6585 | } |
| 6586 | |
| 6587 | inline BatchNormTrainingRequest& operator=(BatchNormTrainingRequest&& from) noexcept { |
| 6588 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 6589 | if (this != &from) InternalSwap(&from); |
| 6590 | } else { |
| 6591 | CopyFrom(from); |
| 6592 | } |
| 6593 | return *this; |
| 6594 | } |
| 6595 | #endif |
| 6596 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 6597 | return GetArenaNoVirtual(); |
| 6598 | } |
| 6599 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 6600 | return MaybeArenaPtr(); |
| 6601 | } |
| 6602 | static const ::google::protobuf::Descriptor* descriptor(); |
| 6603 | static const BatchNormTrainingRequest& default_instance(); |
| 6604 | |
| 6605 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 6606 | static inline const BatchNormTrainingRequest* internal_default_instance() { |
| 6607 | return reinterpret_cast<const BatchNormTrainingRequest*>( |
| 6608 | &_BatchNormTrainingRequest_default_instance_); |
| 6609 | } |
| 6610 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 6611 | 38; |
| 6612 | |
| 6613 | void UnsafeArenaSwap(BatchNormTrainingRequest* other); |
| 6614 | void Swap(BatchNormTrainingRequest* other); |
| 6615 | friend void swap(BatchNormTrainingRequest& a, BatchNormTrainingRequest& b) { |
| 6616 | a.Swap(&b); |
| 6617 | } |
| 6618 | |
| 6619 | // implements Message ---------------------------------------------- |
| 6620 | |
| 6621 | inline BatchNormTrainingRequest* New() const PROTOBUF_FINAL { |
| 6622 | return ::google::protobuf::Arena::CreateMessage<BatchNormTrainingRequest>(NULL); |
| 6623 | } |
| 6624 | |
| 6625 | BatchNormTrainingRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 6626 | return ::google::protobuf::Arena::CreateMessage<BatchNormTrainingRequest>(arena); |
| 6627 | } |
| 6628 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6629 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6630 | void CopyFrom(const BatchNormTrainingRequest& from); |
| 6631 | void MergeFrom(const BatchNormTrainingRequest& from); |
| 6632 | void Clear() PROTOBUF_FINAL; |
| 6633 | bool IsInitialized() const PROTOBUF_FINAL; |
| 6634 | |
| 6635 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 6636 | bool MergePartialFromCodedStream( |
| 6637 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 6638 | void SerializeWithCachedSizes( |
| 6639 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 6640 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6641 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6642 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6643 | private: |
| 6644 | void SharedCtor(); |
| 6645 | void SharedDtor(); |
| 6646 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 6647 | void InternalSwap(BatchNormTrainingRequest* other); |
| 6648 | protected: |
| 6649 | explicit BatchNormTrainingRequest(::google::protobuf::Arena* arena); |
| 6650 | private: |
| 6651 | static void ArenaDtor(void* object); |
| 6652 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 6653 | private: |
| 6654 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 6655 | return _internal_metadata_.arena(); |
| 6656 | } |
| 6657 | inline void* MaybeArenaPtr() const { |
| 6658 | return _internal_metadata_.raw_arena_ptr(); |
| 6659 | } |
| 6660 | public: |
| 6661 | |
| 6662 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 6663 | |
| 6664 | // nested types ---------------------------------------------------- |
| 6665 | |
| 6666 | // accessors ------------------------------------------------------- |
| 6667 | |
| 6668 | // .xla.ComputationDataHandle operand = 1; |
| 6669 | bool has_operand() const; |
| 6670 | void clear_operand(); |
| 6671 | static const int kOperandFieldNumber = 1; |
| 6672 | const ::xla::ComputationDataHandle& operand() const; |
| 6673 | ::xla::ComputationDataHandle* release_operand(); |
| 6674 | ::xla::ComputationDataHandle* mutable_operand(); |
| 6675 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 6676 | void unsafe_arena_set_allocated_operand( |
| 6677 | ::xla::ComputationDataHandle* operand); |
| 6678 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 6679 | |
| 6680 | // .xla.ComputationDataHandle scale = 2; |
| 6681 | bool has_scale() const; |
| 6682 | void clear_scale(); |
| 6683 | static const int kScaleFieldNumber = 2; |
| 6684 | const ::xla::ComputationDataHandle& scale() const; |
| 6685 | ::xla::ComputationDataHandle* release_scale(); |
| 6686 | ::xla::ComputationDataHandle* mutable_scale(); |
| 6687 | void set_allocated_scale(::xla::ComputationDataHandle* scale); |
| 6688 | void unsafe_arena_set_allocated_scale( |
| 6689 | ::xla::ComputationDataHandle* scale); |
| 6690 | ::xla::ComputationDataHandle* unsafe_arena_release_scale(); |
| 6691 | |
| 6692 | // .xla.ComputationDataHandle offset = 3; |
| 6693 | bool has_offset() const; |
| 6694 | void clear_offset(); |
| 6695 | static const int kOffsetFieldNumber = 3; |
| 6696 | const ::xla::ComputationDataHandle& offset() const; |
| 6697 | ::xla::ComputationDataHandle* release_offset(); |
| 6698 | ::xla::ComputationDataHandle* mutable_offset(); |
| 6699 | void set_allocated_offset(::xla::ComputationDataHandle* offset); |
| 6700 | void unsafe_arena_set_allocated_offset( |
| 6701 | ::xla::ComputationDataHandle* offset); |
| 6702 | ::xla::ComputationDataHandle* unsafe_arena_release_offset(); |
| 6703 | |
| 6704 | // int64 feature_index = 5; |
| 6705 | void clear_feature_index(); |
| 6706 | static const int kFeatureIndexFieldNumber = 5; |
| 6707 | ::google::protobuf::int64 feature_index() const; |
| 6708 | void set_feature_index(::google::protobuf::int64 value); |
| 6709 | |
| 6710 | // float epsilon = 4; |
| 6711 | void clear_epsilon(); |
| 6712 | static const int kEpsilonFieldNumber = 4; |
| 6713 | float epsilon() const; |
| 6714 | void set_epsilon(float value); |
| 6715 | |
| 6716 | // @@protoc_insertion_point(class_scope:xla.BatchNormTrainingRequest) |
| 6717 | private: |
| 6718 | |
| 6719 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 6720 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 6721 | typedef void InternalArenaConstructable_; |
| 6722 | typedef void DestructorSkippable_; |
| 6723 | ::xla::ComputationDataHandle* operand_; |
| 6724 | ::xla::ComputationDataHandle* scale_; |
| 6725 | ::xla::ComputationDataHandle* offset_; |
| 6726 | ::google::protobuf::int64 feature_index_; |
| 6727 | float epsilon_; |
| 6728 | mutable int _cached_size_; |
| 6729 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 6730 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsBatchNormTrainingRequestImpl(); |
| 6731 | }; |
| 6732 | // ------------------------------------------------------------------- |
| 6733 | |
| 6734 | class BatchNormInferenceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BatchNormInferenceRequest) */ { |
| 6735 | public: |
| 6736 | BatchNormInferenceRequest(); |
| 6737 | virtual ~BatchNormInferenceRequest(); |
| 6738 | |
| 6739 | BatchNormInferenceRequest(const BatchNormInferenceRequest& from); |
| 6740 | |
| 6741 | inline BatchNormInferenceRequest& operator=(const BatchNormInferenceRequest& from) { |
| 6742 | CopyFrom(from); |
| 6743 | return *this; |
| 6744 | } |
| 6745 | #if LANG_CXX11 |
| 6746 | BatchNormInferenceRequest(BatchNormInferenceRequest&& from) noexcept |
| 6747 | : BatchNormInferenceRequest() { |
| 6748 | *this = ::std::move(from); |
| 6749 | } |
| 6750 | |
| 6751 | inline BatchNormInferenceRequest& operator=(BatchNormInferenceRequest&& from) noexcept { |
| 6752 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 6753 | if (this != &from) InternalSwap(&from); |
| 6754 | } else { |
| 6755 | CopyFrom(from); |
| 6756 | } |
| 6757 | return *this; |
| 6758 | } |
| 6759 | #endif |
| 6760 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 6761 | return GetArenaNoVirtual(); |
| 6762 | } |
| 6763 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 6764 | return MaybeArenaPtr(); |
| 6765 | } |
| 6766 | static const ::google::protobuf::Descriptor* descriptor(); |
| 6767 | static const BatchNormInferenceRequest& default_instance(); |
| 6768 | |
| 6769 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 6770 | static inline const BatchNormInferenceRequest* internal_default_instance() { |
| 6771 | return reinterpret_cast<const BatchNormInferenceRequest*>( |
| 6772 | &_BatchNormInferenceRequest_default_instance_); |
| 6773 | } |
| 6774 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 6775 | 39; |
| 6776 | |
| 6777 | void UnsafeArenaSwap(BatchNormInferenceRequest* other); |
| 6778 | void Swap(BatchNormInferenceRequest* other); |
| 6779 | friend void swap(BatchNormInferenceRequest& a, BatchNormInferenceRequest& b) { |
| 6780 | a.Swap(&b); |
| 6781 | } |
| 6782 | |
| 6783 | // implements Message ---------------------------------------------- |
| 6784 | |
| 6785 | inline BatchNormInferenceRequest* New() const PROTOBUF_FINAL { |
| 6786 | return ::google::protobuf::Arena::CreateMessage<BatchNormInferenceRequest>(NULL); |
| 6787 | } |
| 6788 | |
| 6789 | BatchNormInferenceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 6790 | return ::google::protobuf::Arena::CreateMessage<BatchNormInferenceRequest>(arena); |
| 6791 | } |
| 6792 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6793 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6794 | void CopyFrom(const BatchNormInferenceRequest& from); |
| 6795 | void MergeFrom(const BatchNormInferenceRequest& from); |
| 6796 | void Clear() PROTOBUF_FINAL; |
| 6797 | bool IsInitialized() const PROTOBUF_FINAL; |
| 6798 | |
| 6799 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 6800 | bool MergePartialFromCodedStream( |
| 6801 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 6802 | void SerializeWithCachedSizes( |
| 6803 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 6804 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6805 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6806 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6807 | private: |
| 6808 | void SharedCtor(); |
| 6809 | void SharedDtor(); |
| 6810 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 6811 | void InternalSwap(BatchNormInferenceRequest* other); |
| 6812 | protected: |
| 6813 | explicit BatchNormInferenceRequest(::google::protobuf::Arena* arena); |
| 6814 | private: |
| 6815 | static void ArenaDtor(void* object); |
| 6816 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 6817 | private: |
| 6818 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 6819 | return _internal_metadata_.arena(); |
| 6820 | } |
| 6821 | inline void* MaybeArenaPtr() const { |
| 6822 | return _internal_metadata_.raw_arena_ptr(); |
| 6823 | } |
| 6824 | public: |
| 6825 | |
| 6826 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 6827 | |
| 6828 | // nested types ---------------------------------------------------- |
| 6829 | |
| 6830 | // accessors ------------------------------------------------------- |
| 6831 | |
| 6832 | // .xla.ComputationDataHandle operand = 1; |
| 6833 | bool has_operand() const; |
| 6834 | void clear_operand(); |
| 6835 | static const int kOperandFieldNumber = 1; |
| 6836 | const ::xla::ComputationDataHandle& operand() const; |
| 6837 | ::xla::ComputationDataHandle* release_operand(); |
| 6838 | ::xla::ComputationDataHandle* mutable_operand(); |
| 6839 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 6840 | void unsafe_arena_set_allocated_operand( |
| 6841 | ::xla::ComputationDataHandle* operand); |
| 6842 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 6843 | |
| 6844 | // .xla.ComputationDataHandle scale = 2; |
| 6845 | bool has_scale() const; |
| 6846 | void clear_scale(); |
| 6847 | static const int kScaleFieldNumber = 2; |
| 6848 | const ::xla::ComputationDataHandle& scale() const; |
| 6849 | ::xla::ComputationDataHandle* release_scale(); |
| 6850 | ::xla::ComputationDataHandle* mutable_scale(); |
| 6851 | void set_allocated_scale(::xla::ComputationDataHandle* scale); |
| 6852 | void unsafe_arena_set_allocated_scale( |
| 6853 | ::xla::ComputationDataHandle* scale); |
| 6854 | ::xla::ComputationDataHandle* unsafe_arena_release_scale(); |
| 6855 | |
| 6856 | // .xla.ComputationDataHandle offset = 3; |
| 6857 | bool has_offset() const; |
| 6858 | void clear_offset(); |
| 6859 | static const int kOffsetFieldNumber = 3; |
| 6860 | const ::xla::ComputationDataHandle& offset() const; |
| 6861 | ::xla::ComputationDataHandle* release_offset(); |
| 6862 | ::xla::ComputationDataHandle* mutable_offset(); |
| 6863 | void set_allocated_offset(::xla::ComputationDataHandle* offset); |
| 6864 | void unsafe_arena_set_allocated_offset( |
| 6865 | ::xla::ComputationDataHandle* offset); |
| 6866 | ::xla::ComputationDataHandle* unsafe_arena_release_offset(); |
| 6867 | |
| 6868 | // .xla.ComputationDataHandle mean = 4; |
| 6869 | bool has_mean() const; |
| 6870 | void clear_mean(); |
| 6871 | static const int kMeanFieldNumber = 4; |
| 6872 | const ::xla::ComputationDataHandle& mean() const; |
| 6873 | ::xla::ComputationDataHandle* release_mean(); |
| 6874 | ::xla::ComputationDataHandle* mutable_mean(); |
| 6875 | void set_allocated_mean(::xla::ComputationDataHandle* mean); |
| 6876 | void unsafe_arena_set_allocated_mean( |
| 6877 | ::xla::ComputationDataHandle* mean); |
| 6878 | ::xla::ComputationDataHandle* unsafe_arena_release_mean(); |
| 6879 | |
| 6880 | // .xla.ComputationDataHandle variance = 5; |
| 6881 | bool has_variance() const; |
| 6882 | void clear_variance(); |
| 6883 | static const int kVarianceFieldNumber = 5; |
| 6884 | const ::xla::ComputationDataHandle& variance() const; |
| 6885 | ::xla::ComputationDataHandle* release_variance(); |
| 6886 | ::xla::ComputationDataHandle* mutable_variance(); |
| 6887 | void set_allocated_variance(::xla::ComputationDataHandle* variance); |
| 6888 | void unsafe_arena_set_allocated_variance( |
| 6889 | ::xla::ComputationDataHandle* variance); |
| 6890 | ::xla::ComputationDataHandle* unsafe_arena_release_variance(); |
| 6891 | |
| 6892 | // int64 feature_index = 7; |
| 6893 | void clear_feature_index(); |
| 6894 | static const int kFeatureIndexFieldNumber = 7; |
| 6895 | ::google::protobuf::int64 feature_index() const; |
| 6896 | void set_feature_index(::google::protobuf::int64 value); |
| 6897 | |
| 6898 | // float epsilon = 6; |
| 6899 | void clear_epsilon(); |
| 6900 | static const int kEpsilonFieldNumber = 6; |
| 6901 | float epsilon() const; |
| 6902 | void set_epsilon(float value); |
| 6903 | |
| 6904 | // @@protoc_insertion_point(class_scope:xla.BatchNormInferenceRequest) |
| 6905 | private: |
| 6906 | |
| 6907 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 6908 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 6909 | typedef void InternalArenaConstructable_; |
| 6910 | typedef void DestructorSkippable_; |
| 6911 | ::xla::ComputationDataHandle* operand_; |
| 6912 | ::xla::ComputationDataHandle* scale_; |
| 6913 | ::xla::ComputationDataHandle* offset_; |
| 6914 | ::xla::ComputationDataHandle* mean_; |
| 6915 | ::xla::ComputationDataHandle* variance_; |
| 6916 | ::google::protobuf::int64 feature_index_; |
| 6917 | float epsilon_; |
| 6918 | mutable int _cached_size_; |
| 6919 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 6920 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsBatchNormInferenceRequestImpl(); |
| 6921 | }; |
| 6922 | // ------------------------------------------------------------------- |
| 6923 | |
| 6924 | class BatchNormGradRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BatchNormGradRequest) */ { |
| 6925 | public: |
| 6926 | BatchNormGradRequest(); |
| 6927 | virtual ~BatchNormGradRequest(); |
| 6928 | |
| 6929 | BatchNormGradRequest(const BatchNormGradRequest& from); |
| 6930 | |
| 6931 | inline BatchNormGradRequest& operator=(const BatchNormGradRequest& from) { |
| 6932 | CopyFrom(from); |
| 6933 | return *this; |
| 6934 | } |
| 6935 | #if LANG_CXX11 |
| 6936 | BatchNormGradRequest(BatchNormGradRequest&& from) noexcept |
| 6937 | : BatchNormGradRequest() { |
| 6938 | *this = ::std::move(from); |
| 6939 | } |
| 6940 | |
| 6941 | inline BatchNormGradRequest& operator=(BatchNormGradRequest&& from) noexcept { |
| 6942 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 6943 | if (this != &from) InternalSwap(&from); |
| 6944 | } else { |
| 6945 | CopyFrom(from); |
| 6946 | } |
| 6947 | return *this; |
| 6948 | } |
| 6949 | #endif |
| 6950 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 6951 | return GetArenaNoVirtual(); |
| 6952 | } |
| 6953 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 6954 | return MaybeArenaPtr(); |
| 6955 | } |
| 6956 | static const ::google::protobuf::Descriptor* descriptor(); |
| 6957 | static const BatchNormGradRequest& default_instance(); |
| 6958 | |
| 6959 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 6960 | static inline const BatchNormGradRequest* internal_default_instance() { |
| 6961 | return reinterpret_cast<const BatchNormGradRequest*>( |
| 6962 | &_BatchNormGradRequest_default_instance_); |
| 6963 | } |
| 6964 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 6965 | 40; |
| 6966 | |
| 6967 | void UnsafeArenaSwap(BatchNormGradRequest* other); |
| 6968 | void Swap(BatchNormGradRequest* other); |
| 6969 | friend void swap(BatchNormGradRequest& a, BatchNormGradRequest& b) { |
| 6970 | a.Swap(&b); |
| 6971 | } |
| 6972 | |
| 6973 | // implements Message ---------------------------------------------- |
| 6974 | |
| 6975 | inline BatchNormGradRequest* New() const PROTOBUF_FINAL { |
| 6976 | return ::google::protobuf::Arena::CreateMessage<BatchNormGradRequest>(NULL); |
| 6977 | } |
| 6978 | |
| 6979 | BatchNormGradRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 6980 | return ::google::protobuf::Arena::CreateMessage<BatchNormGradRequest>(arena); |
| 6981 | } |
| 6982 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6983 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 6984 | void CopyFrom(const BatchNormGradRequest& from); |
| 6985 | void MergeFrom(const BatchNormGradRequest& from); |
| 6986 | void Clear() PROTOBUF_FINAL; |
| 6987 | bool IsInitialized() const PROTOBUF_FINAL; |
| 6988 | |
| 6989 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 6990 | bool MergePartialFromCodedStream( |
| 6991 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 6992 | void SerializeWithCachedSizes( |
| 6993 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 6994 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 6995 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 6996 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 6997 | private: |
| 6998 | void SharedCtor(); |
| 6999 | void SharedDtor(); |
| 7000 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7001 | void InternalSwap(BatchNormGradRequest* other); |
| 7002 | protected: |
| 7003 | explicit BatchNormGradRequest(::google::protobuf::Arena* arena); |
| 7004 | private: |
| 7005 | static void ArenaDtor(void* object); |
| 7006 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7007 | private: |
| 7008 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7009 | return _internal_metadata_.arena(); |
| 7010 | } |
| 7011 | inline void* MaybeArenaPtr() const { |
| 7012 | return _internal_metadata_.raw_arena_ptr(); |
| 7013 | } |
| 7014 | public: |
| 7015 | |
| 7016 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7017 | |
| 7018 | // nested types ---------------------------------------------------- |
| 7019 | |
| 7020 | // accessors ------------------------------------------------------- |
| 7021 | |
| 7022 | // .xla.ComputationDataHandle operand = 1; |
| 7023 | bool has_operand() const; |
| 7024 | void clear_operand(); |
| 7025 | static const int kOperandFieldNumber = 1; |
| 7026 | const ::xla::ComputationDataHandle& operand() const; |
| 7027 | ::xla::ComputationDataHandle* release_operand(); |
| 7028 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7029 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7030 | void unsafe_arena_set_allocated_operand( |
| 7031 | ::xla::ComputationDataHandle* operand); |
| 7032 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7033 | |
| 7034 | // .xla.ComputationDataHandle scale = 2; |
| 7035 | bool has_scale() const; |
| 7036 | void clear_scale(); |
| 7037 | static const int kScaleFieldNumber = 2; |
| 7038 | const ::xla::ComputationDataHandle& scale() const; |
| 7039 | ::xla::ComputationDataHandle* release_scale(); |
| 7040 | ::xla::ComputationDataHandle* mutable_scale(); |
| 7041 | void set_allocated_scale(::xla::ComputationDataHandle* scale); |
| 7042 | void unsafe_arena_set_allocated_scale( |
| 7043 | ::xla::ComputationDataHandle* scale); |
| 7044 | ::xla::ComputationDataHandle* unsafe_arena_release_scale(); |
| 7045 | |
| 7046 | // .xla.ComputationDataHandle mean = 3; |
| 7047 | bool has_mean() const; |
| 7048 | void clear_mean(); |
| 7049 | static const int kMeanFieldNumber = 3; |
| 7050 | const ::xla::ComputationDataHandle& mean() const; |
| 7051 | ::xla::ComputationDataHandle* release_mean(); |
| 7052 | ::xla::ComputationDataHandle* mutable_mean(); |
| 7053 | void set_allocated_mean(::xla::ComputationDataHandle* mean); |
| 7054 | void unsafe_arena_set_allocated_mean( |
| 7055 | ::xla::ComputationDataHandle* mean); |
| 7056 | ::xla::ComputationDataHandle* unsafe_arena_release_mean(); |
| 7057 | |
| 7058 | // .xla.ComputationDataHandle variance = 4; |
| 7059 | bool has_variance() const; |
| 7060 | void clear_variance(); |
| 7061 | static const int kVarianceFieldNumber = 4; |
| 7062 | const ::xla::ComputationDataHandle& variance() const; |
| 7063 | ::xla::ComputationDataHandle* release_variance(); |
| 7064 | ::xla::ComputationDataHandle* mutable_variance(); |
| 7065 | void set_allocated_variance(::xla::ComputationDataHandle* variance); |
| 7066 | void unsafe_arena_set_allocated_variance( |
| 7067 | ::xla::ComputationDataHandle* variance); |
| 7068 | ::xla::ComputationDataHandle* unsafe_arena_release_variance(); |
| 7069 | |
| 7070 | // .xla.ComputationDataHandle grad_output = 5; |
| 7071 | bool has_grad_output() const; |
| 7072 | void clear_grad_output(); |
| 7073 | static const int kGradOutputFieldNumber = 5; |
| 7074 | const ::xla::ComputationDataHandle& grad_output() const; |
| 7075 | ::xla::ComputationDataHandle* release_grad_output(); |
| 7076 | ::xla::ComputationDataHandle* mutable_grad_output(); |
| 7077 | void set_allocated_grad_output(::xla::ComputationDataHandle* grad_output); |
| 7078 | void unsafe_arena_set_allocated_grad_output( |
| 7079 | ::xla::ComputationDataHandle* grad_output); |
| 7080 | ::xla::ComputationDataHandle* unsafe_arena_release_grad_output(); |
| 7081 | |
| 7082 | // int64 feature_index = 7; |
| 7083 | void clear_feature_index(); |
| 7084 | static const int kFeatureIndexFieldNumber = 7; |
| 7085 | ::google::protobuf::int64 feature_index() const; |
| 7086 | void set_feature_index(::google::protobuf::int64 value); |
| 7087 | |
| 7088 | // float epsilon = 6; |
| 7089 | void clear_epsilon(); |
| 7090 | static const int kEpsilonFieldNumber = 6; |
| 7091 | float epsilon() const; |
| 7092 | void set_epsilon(float value); |
| 7093 | |
| 7094 | // @@protoc_insertion_point(class_scope:xla.BatchNormGradRequest) |
| 7095 | private: |
| 7096 | |
| 7097 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7098 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7099 | typedef void InternalArenaConstructable_; |
| 7100 | typedef void DestructorSkippable_; |
| 7101 | ::xla::ComputationDataHandle* operand_; |
| 7102 | ::xla::ComputationDataHandle* scale_; |
| 7103 | ::xla::ComputationDataHandle* mean_; |
| 7104 | ::xla::ComputationDataHandle* variance_; |
| 7105 | ::xla::ComputationDataHandle* grad_output_; |
| 7106 | ::google::protobuf::int64 feature_index_; |
| 7107 | float epsilon_; |
| 7108 | mutable int _cached_size_; |
| 7109 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 7110 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsBatchNormGradRequestImpl(); |
| 7111 | }; |
| 7112 | // ------------------------------------------------------------------- |
| 7113 | |
| 7114 | class CrossReplicaSumRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.CrossReplicaSumRequest) */ { |
| 7115 | public: |
| 7116 | CrossReplicaSumRequest(); |
| 7117 | virtual ~CrossReplicaSumRequest(); |
| 7118 | |
| 7119 | CrossReplicaSumRequest(const CrossReplicaSumRequest& from); |
| 7120 | |
| 7121 | inline CrossReplicaSumRequest& operator=(const CrossReplicaSumRequest& from) { |
| 7122 | CopyFrom(from); |
| 7123 | return *this; |
| 7124 | } |
| 7125 | #if LANG_CXX11 |
| 7126 | CrossReplicaSumRequest(CrossReplicaSumRequest&& from) noexcept |
| 7127 | : CrossReplicaSumRequest() { |
| 7128 | *this = ::std::move(from); |
| 7129 | } |
| 7130 | |
| 7131 | inline CrossReplicaSumRequest& operator=(CrossReplicaSumRequest&& from) noexcept { |
| 7132 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 7133 | if (this != &from) InternalSwap(&from); |
| 7134 | } else { |
| 7135 | CopyFrom(from); |
| 7136 | } |
| 7137 | return *this; |
| 7138 | } |
| 7139 | #endif |
| 7140 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 7141 | return GetArenaNoVirtual(); |
| 7142 | } |
| 7143 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 7144 | return MaybeArenaPtr(); |
| 7145 | } |
| 7146 | static const ::google::protobuf::Descriptor* descriptor(); |
| 7147 | static const CrossReplicaSumRequest& default_instance(); |
| 7148 | |
| 7149 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 7150 | static inline const CrossReplicaSumRequest* internal_default_instance() { |
| 7151 | return reinterpret_cast<const CrossReplicaSumRequest*>( |
| 7152 | &_CrossReplicaSumRequest_default_instance_); |
| 7153 | } |
| 7154 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 7155 | 41; |
| 7156 | |
| 7157 | void UnsafeArenaSwap(CrossReplicaSumRequest* other); |
| 7158 | void Swap(CrossReplicaSumRequest* other); |
| 7159 | friend void swap(CrossReplicaSumRequest& a, CrossReplicaSumRequest& b) { |
| 7160 | a.Swap(&b); |
| 7161 | } |
| 7162 | |
| 7163 | // implements Message ---------------------------------------------- |
| 7164 | |
| 7165 | inline CrossReplicaSumRequest* New() const PROTOBUF_FINAL { |
| 7166 | return ::google::protobuf::Arena::CreateMessage<CrossReplicaSumRequest>(NULL); |
| 7167 | } |
| 7168 | |
| 7169 | CrossReplicaSumRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 7170 | return ::google::protobuf::Arena::CreateMessage<CrossReplicaSumRequest>(arena); |
| 7171 | } |
| 7172 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7173 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7174 | void CopyFrom(const CrossReplicaSumRequest& from); |
| 7175 | void MergeFrom(const CrossReplicaSumRequest& from); |
| 7176 | void Clear() PROTOBUF_FINAL; |
| 7177 | bool IsInitialized() const PROTOBUF_FINAL; |
| 7178 | |
| 7179 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 7180 | bool MergePartialFromCodedStream( |
| 7181 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 7182 | void SerializeWithCachedSizes( |
| 7183 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 7184 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 7185 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 7186 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 7187 | private: |
| 7188 | void SharedCtor(); |
| 7189 | void SharedDtor(); |
| 7190 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7191 | void InternalSwap(CrossReplicaSumRequest* other); |
| 7192 | protected: |
| 7193 | explicit CrossReplicaSumRequest(::google::protobuf::Arena* arena); |
| 7194 | private: |
| 7195 | static void ArenaDtor(void* object); |
| 7196 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7197 | private: |
| 7198 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7199 | return _internal_metadata_.arena(); |
| 7200 | } |
| 7201 | inline void* MaybeArenaPtr() const { |
| 7202 | return _internal_metadata_.raw_arena_ptr(); |
| 7203 | } |
| 7204 | public: |
| 7205 | |
| 7206 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7207 | |
| 7208 | // nested types ---------------------------------------------------- |
| 7209 | |
| 7210 | // accessors ------------------------------------------------------- |
| 7211 | |
| 7212 | // .xla.ComputationDataHandle operand = 2; |
| 7213 | bool has_operand() const; |
| 7214 | void clear_operand(); |
| 7215 | static const int kOperandFieldNumber = 2; |
| 7216 | const ::xla::ComputationDataHandle& operand() const; |
| 7217 | ::xla::ComputationDataHandle* release_operand(); |
| 7218 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7219 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7220 | void unsafe_arena_set_allocated_operand( |
| 7221 | ::xla::ComputationDataHandle* operand); |
| 7222 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7223 | |
| 7224 | // @@protoc_insertion_point(class_scope:xla.CrossReplicaSumRequest) |
| 7225 | private: |
| 7226 | |
| 7227 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7228 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7229 | typedef void InternalArenaConstructable_; |
| 7230 | typedef void DestructorSkippable_; |
| 7231 | ::xla::ComputationDataHandle* operand_; |
| 7232 | mutable int _cached_size_; |
| 7233 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 7234 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsCrossReplicaSumRequestImpl(); |
| 7235 | }; |
| 7236 | // ------------------------------------------------------------------- |
| 7237 | |
| 7238 | class SelectAndScatterRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.SelectAndScatterRequest) */ { |
| 7239 | public: |
| 7240 | SelectAndScatterRequest(); |
| 7241 | virtual ~SelectAndScatterRequest(); |
| 7242 | |
| 7243 | SelectAndScatterRequest(const SelectAndScatterRequest& from); |
| 7244 | |
| 7245 | inline SelectAndScatterRequest& operator=(const SelectAndScatterRequest& from) { |
| 7246 | CopyFrom(from); |
| 7247 | return *this; |
| 7248 | } |
| 7249 | #if LANG_CXX11 |
| 7250 | SelectAndScatterRequest(SelectAndScatterRequest&& from) noexcept |
| 7251 | : SelectAndScatterRequest() { |
| 7252 | *this = ::std::move(from); |
| 7253 | } |
| 7254 | |
| 7255 | inline SelectAndScatterRequest& operator=(SelectAndScatterRequest&& from) noexcept { |
| 7256 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 7257 | if (this != &from) InternalSwap(&from); |
| 7258 | } else { |
| 7259 | CopyFrom(from); |
| 7260 | } |
| 7261 | return *this; |
| 7262 | } |
| 7263 | #endif |
| 7264 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 7265 | return GetArenaNoVirtual(); |
| 7266 | } |
| 7267 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 7268 | return MaybeArenaPtr(); |
| 7269 | } |
| 7270 | static const ::google::protobuf::Descriptor* descriptor(); |
| 7271 | static const SelectAndScatterRequest& default_instance(); |
| 7272 | |
| 7273 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 7274 | static inline const SelectAndScatterRequest* internal_default_instance() { |
| 7275 | return reinterpret_cast<const SelectAndScatterRequest*>( |
| 7276 | &_SelectAndScatterRequest_default_instance_); |
| 7277 | } |
| 7278 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 7279 | 42; |
| 7280 | |
| 7281 | void UnsafeArenaSwap(SelectAndScatterRequest* other); |
| 7282 | void Swap(SelectAndScatterRequest* other); |
| 7283 | friend void swap(SelectAndScatterRequest& a, SelectAndScatterRequest& b) { |
| 7284 | a.Swap(&b); |
| 7285 | } |
| 7286 | |
| 7287 | // implements Message ---------------------------------------------- |
| 7288 | |
| 7289 | inline SelectAndScatterRequest* New() const PROTOBUF_FINAL { |
| 7290 | return ::google::protobuf::Arena::CreateMessage<SelectAndScatterRequest>(NULL); |
| 7291 | } |
| 7292 | |
| 7293 | SelectAndScatterRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 7294 | return ::google::protobuf::Arena::CreateMessage<SelectAndScatterRequest>(arena); |
| 7295 | } |
| 7296 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7297 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7298 | void CopyFrom(const SelectAndScatterRequest& from); |
| 7299 | void MergeFrom(const SelectAndScatterRequest& from); |
| 7300 | void Clear() PROTOBUF_FINAL; |
| 7301 | bool IsInitialized() const PROTOBUF_FINAL; |
| 7302 | |
| 7303 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 7304 | bool MergePartialFromCodedStream( |
| 7305 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 7306 | void SerializeWithCachedSizes( |
| 7307 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 7308 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 7309 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 7310 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 7311 | private: |
| 7312 | void SharedCtor(); |
| 7313 | void SharedDtor(); |
| 7314 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7315 | void InternalSwap(SelectAndScatterRequest* other); |
| 7316 | protected: |
| 7317 | explicit SelectAndScatterRequest(::google::protobuf::Arena* arena); |
| 7318 | private: |
| 7319 | static void ArenaDtor(void* object); |
| 7320 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7321 | private: |
| 7322 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7323 | return _internal_metadata_.arena(); |
| 7324 | } |
| 7325 | inline void* MaybeArenaPtr() const { |
| 7326 | return _internal_metadata_.raw_arena_ptr(); |
| 7327 | } |
| 7328 | public: |
| 7329 | |
| 7330 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7331 | |
| 7332 | // nested types ---------------------------------------------------- |
| 7333 | |
| 7334 | // accessors ------------------------------------------------------- |
| 7335 | |
| 7336 | // .xla.ComputationDataHandle operand = 2; |
| 7337 | bool has_operand() const; |
| 7338 | void clear_operand(); |
| 7339 | static const int kOperandFieldNumber = 2; |
| 7340 | const ::xla::ComputationDataHandle& operand() const; |
| 7341 | ::xla::ComputationDataHandle* release_operand(); |
| 7342 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7343 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7344 | void unsafe_arena_set_allocated_operand( |
| 7345 | ::xla::ComputationDataHandle* operand); |
| 7346 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7347 | |
| 7348 | // .xla.ComputationDataHandle source = 3; |
| 7349 | bool has_source() const; |
| 7350 | void clear_source(); |
| 7351 | static const int kSourceFieldNumber = 3; |
| 7352 | const ::xla::ComputationDataHandle& source() const; |
| 7353 | ::xla::ComputationDataHandle* release_source(); |
| 7354 | ::xla::ComputationDataHandle* mutable_source(); |
| 7355 | void set_allocated_source(::xla::ComputationDataHandle* source); |
| 7356 | void unsafe_arena_set_allocated_source( |
| 7357 | ::xla::ComputationDataHandle* source); |
| 7358 | ::xla::ComputationDataHandle* unsafe_arena_release_source(); |
| 7359 | |
| 7360 | // .xla.ComputationDataHandle init_value = 4; |
| 7361 | bool has_init_value() const; |
| 7362 | void clear_init_value(); |
| 7363 | static const int kInitValueFieldNumber = 4; |
| 7364 | const ::xla::ComputationDataHandle& init_value() const; |
| 7365 | ::xla::ComputationDataHandle* release_init_value(); |
| 7366 | ::xla::ComputationDataHandle* mutable_init_value(); |
| 7367 | void set_allocated_init_value(::xla::ComputationDataHandle* init_value); |
| 7368 | void unsafe_arena_set_allocated_init_value( |
| 7369 | ::xla::ComputationDataHandle* init_value); |
| 7370 | ::xla::ComputationDataHandle* unsafe_arena_release_init_value(); |
| 7371 | |
| 7372 | // .xla.Window window = 5; |
| 7373 | bool has_window() const; |
| 7374 | void clear_window(); |
| 7375 | static const int kWindowFieldNumber = 5; |
| 7376 | const ::xla::Window& window() const; |
| 7377 | ::xla::Window* release_window(); |
| 7378 | ::xla::Window* mutable_window(); |
| 7379 | void set_allocated_window(::xla::Window* window); |
| 7380 | void unsafe_arena_set_allocated_window( |
| 7381 | ::xla::Window* window); |
| 7382 | ::xla::Window* unsafe_arena_release_window(); |
| 7383 | |
| 7384 | // .xla.ComputationHandle select = 6; |
| 7385 | bool has_select() const; |
| 7386 | void clear_select(); |
| 7387 | static const int kSelectFieldNumber = 6; |
| 7388 | const ::xla::ComputationHandle& select() const; |
| 7389 | ::xla::ComputationHandle* release_select(); |
| 7390 | ::xla::ComputationHandle* mutable_select(); |
| 7391 | void set_allocated_select(::xla::ComputationHandle* select); |
| 7392 | void unsafe_arena_set_allocated_select( |
| 7393 | ::xla::ComputationHandle* select); |
| 7394 | ::xla::ComputationHandle* unsafe_arena_release_select(); |
| 7395 | |
| 7396 | // .xla.ComputationHandle scatter = 7; |
| 7397 | bool has_scatter() const; |
| 7398 | void clear_scatter(); |
| 7399 | static const int kScatterFieldNumber = 7; |
| 7400 | const ::xla::ComputationHandle& scatter() const; |
| 7401 | ::xla::ComputationHandle* release_scatter(); |
| 7402 | ::xla::ComputationHandle* mutable_scatter(); |
| 7403 | void set_allocated_scatter(::xla::ComputationHandle* scatter); |
| 7404 | void unsafe_arena_set_allocated_scatter( |
| 7405 | ::xla::ComputationHandle* scatter); |
| 7406 | ::xla::ComputationHandle* unsafe_arena_release_scatter(); |
| 7407 | |
| 7408 | // @@protoc_insertion_point(class_scope:xla.SelectAndScatterRequest) |
| 7409 | private: |
| 7410 | |
| 7411 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7412 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7413 | typedef void InternalArenaConstructable_; |
| 7414 | typedef void DestructorSkippable_; |
| 7415 | ::xla::ComputationDataHandle* operand_; |
| 7416 | ::xla::ComputationDataHandle* source_; |
| 7417 | ::xla::ComputationDataHandle* init_value_; |
| 7418 | ::xla::Window* window_; |
| 7419 | ::xla::ComputationHandle* select_; |
| 7420 | ::xla::ComputationHandle* scatter_; |
| 7421 | mutable int _cached_size_; |
| 7422 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 7423 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsSelectAndScatterRequestImpl(); |
| 7424 | }; |
| 7425 | // ------------------------------------------------------------------- |
| 7426 | |
| 7427 | class ReverseRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ReverseRequest) */ { |
| 7428 | public: |
| 7429 | ReverseRequest(); |
| 7430 | virtual ~ReverseRequest(); |
| 7431 | |
| 7432 | ReverseRequest(const ReverseRequest& from); |
| 7433 | |
| 7434 | inline ReverseRequest& operator=(const ReverseRequest& from) { |
| 7435 | CopyFrom(from); |
| 7436 | return *this; |
| 7437 | } |
| 7438 | #if LANG_CXX11 |
| 7439 | ReverseRequest(ReverseRequest&& from) noexcept |
| 7440 | : ReverseRequest() { |
| 7441 | *this = ::std::move(from); |
| 7442 | } |
| 7443 | |
| 7444 | inline ReverseRequest& operator=(ReverseRequest&& from) noexcept { |
| 7445 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 7446 | if (this != &from) InternalSwap(&from); |
| 7447 | } else { |
| 7448 | CopyFrom(from); |
| 7449 | } |
| 7450 | return *this; |
| 7451 | } |
| 7452 | #endif |
| 7453 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 7454 | return GetArenaNoVirtual(); |
| 7455 | } |
| 7456 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 7457 | return MaybeArenaPtr(); |
| 7458 | } |
| 7459 | static const ::google::protobuf::Descriptor* descriptor(); |
| 7460 | static const ReverseRequest& default_instance(); |
| 7461 | |
| 7462 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 7463 | static inline const ReverseRequest* internal_default_instance() { |
| 7464 | return reinterpret_cast<const ReverseRequest*>( |
| 7465 | &_ReverseRequest_default_instance_); |
| 7466 | } |
| 7467 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 7468 | 43; |
| 7469 | |
| 7470 | void UnsafeArenaSwap(ReverseRequest* other); |
| 7471 | void Swap(ReverseRequest* other); |
| 7472 | friend void swap(ReverseRequest& a, ReverseRequest& b) { |
| 7473 | a.Swap(&b); |
| 7474 | } |
| 7475 | |
| 7476 | // implements Message ---------------------------------------------- |
| 7477 | |
| 7478 | inline ReverseRequest* New() const PROTOBUF_FINAL { |
| 7479 | return ::google::protobuf::Arena::CreateMessage<ReverseRequest>(NULL); |
| 7480 | } |
| 7481 | |
| 7482 | ReverseRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 7483 | return ::google::protobuf::Arena::CreateMessage<ReverseRequest>(arena); |
| 7484 | } |
| 7485 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7486 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7487 | void CopyFrom(const ReverseRequest& from); |
| 7488 | void MergeFrom(const ReverseRequest& from); |
| 7489 | void Clear() PROTOBUF_FINAL; |
| 7490 | bool IsInitialized() const PROTOBUF_FINAL; |
| 7491 | |
| 7492 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 7493 | bool MergePartialFromCodedStream( |
| 7494 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 7495 | void SerializeWithCachedSizes( |
| 7496 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 7497 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 7498 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 7499 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 7500 | private: |
| 7501 | void SharedCtor(); |
| 7502 | void SharedDtor(); |
| 7503 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7504 | void InternalSwap(ReverseRequest* other); |
| 7505 | protected: |
| 7506 | explicit ReverseRequest(::google::protobuf::Arena* arena); |
| 7507 | private: |
| 7508 | static void ArenaDtor(void* object); |
| 7509 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7510 | private: |
| 7511 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7512 | return _internal_metadata_.arena(); |
| 7513 | } |
| 7514 | inline void* MaybeArenaPtr() const { |
| 7515 | return _internal_metadata_.raw_arena_ptr(); |
| 7516 | } |
| 7517 | public: |
| 7518 | |
| 7519 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7520 | |
| 7521 | // nested types ---------------------------------------------------- |
| 7522 | |
| 7523 | // accessors ------------------------------------------------------- |
| 7524 | |
| 7525 | // repeated int64 dimensions = 3; |
| 7526 | int dimensions_size() const; |
| 7527 | void clear_dimensions(); |
| 7528 | static const int kDimensionsFieldNumber = 3; |
| 7529 | ::google::protobuf::int64 dimensions(int index) const; |
| 7530 | void set_dimensions(int index, ::google::protobuf::int64 value); |
| 7531 | void add_dimensions(::google::protobuf::int64 value); |
| 7532 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 7533 | dimensions() const; |
| 7534 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 7535 | mutable_dimensions(); |
| 7536 | |
| 7537 | // .xla.ComputationDataHandle operand = 2; |
| 7538 | bool has_operand() const; |
| 7539 | void clear_operand(); |
| 7540 | static const int kOperandFieldNumber = 2; |
| 7541 | const ::xla::ComputationDataHandle& operand() const; |
| 7542 | ::xla::ComputationDataHandle* release_operand(); |
| 7543 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7544 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7545 | void unsafe_arena_set_allocated_operand( |
| 7546 | ::xla::ComputationDataHandle* operand); |
| 7547 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7548 | |
| 7549 | // @@protoc_insertion_point(class_scope:xla.ReverseRequest) |
| 7550 | private: |
| 7551 | |
| 7552 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7553 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7554 | typedef void InternalArenaConstructable_; |
| 7555 | typedef void DestructorSkippable_; |
| 7556 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; |
| 7557 | mutable int _dimensions_cached_byte_size_; |
| 7558 | ::xla::ComputationDataHandle* operand_; |
| 7559 | mutable int _cached_size_; |
| 7560 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 7561 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsReverseRequestImpl(); |
| 7562 | }; |
| 7563 | // ------------------------------------------------------------------- |
| 7564 | |
| 7565 | class BroadcastRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BroadcastRequest) */ { |
| 7566 | public: |
| 7567 | BroadcastRequest(); |
| 7568 | virtual ~BroadcastRequest(); |
| 7569 | |
| 7570 | BroadcastRequest(const BroadcastRequest& from); |
| 7571 | |
| 7572 | inline BroadcastRequest& operator=(const BroadcastRequest& from) { |
| 7573 | CopyFrom(from); |
| 7574 | return *this; |
| 7575 | } |
| 7576 | #if LANG_CXX11 |
| 7577 | BroadcastRequest(BroadcastRequest&& from) noexcept |
| 7578 | : BroadcastRequest() { |
| 7579 | *this = ::std::move(from); |
| 7580 | } |
| 7581 | |
| 7582 | inline BroadcastRequest& operator=(BroadcastRequest&& from) noexcept { |
| 7583 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 7584 | if (this != &from) InternalSwap(&from); |
| 7585 | } else { |
| 7586 | CopyFrom(from); |
| 7587 | } |
| 7588 | return *this; |
| 7589 | } |
| 7590 | #endif |
| 7591 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 7592 | return GetArenaNoVirtual(); |
| 7593 | } |
| 7594 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 7595 | return MaybeArenaPtr(); |
| 7596 | } |
| 7597 | static const ::google::protobuf::Descriptor* descriptor(); |
| 7598 | static const BroadcastRequest& default_instance(); |
| 7599 | |
| 7600 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 7601 | static inline const BroadcastRequest* internal_default_instance() { |
| 7602 | return reinterpret_cast<const BroadcastRequest*>( |
| 7603 | &_BroadcastRequest_default_instance_); |
| 7604 | } |
| 7605 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 7606 | 44; |
| 7607 | |
| 7608 | void UnsafeArenaSwap(BroadcastRequest* other); |
| 7609 | void Swap(BroadcastRequest* other); |
| 7610 | friend void swap(BroadcastRequest& a, BroadcastRequest& b) { |
| 7611 | a.Swap(&b); |
| 7612 | } |
| 7613 | |
| 7614 | // implements Message ---------------------------------------------- |
| 7615 | |
| 7616 | inline BroadcastRequest* New() const PROTOBUF_FINAL { |
| 7617 | return ::google::protobuf::Arena::CreateMessage<BroadcastRequest>(NULL); |
| 7618 | } |
| 7619 | |
| 7620 | BroadcastRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 7621 | return ::google::protobuf::Arena::CreateMessage<BroadcastRequest>(arena); |
| 7622 | } |
| 7623 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7624 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7625 | void CopyFrom(const BroadcastRequest& from); |
| 7626 | void MergeFrom(const BroadcastRequest& from); |
| 7627 | void Clear() PROTOBUF_FINAL; |
| 7628 | bool IsInitialized() const PROTOBUF_FINAL; |
| 7629 | |
| 7630 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 7631 | bool MergePartialFromCodedStream( |
| 7632 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 7633 | void SerializeWithCachedSizes( |
| 7634 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 7635 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 7636 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 7637 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 7638 | private: |
| 7639 | void SharedCtor(); |
| 7640 | void SharedDtor(); |
| 7641 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7642 | void InternalSwap(BroadcastRequest* other); |
| 7643 | protected: |
| 7644 | explicit BroadcastRequest(::google::protobuf::Arena* arena); |
| 7645 | private: |
| 7646 | static void ArenaDtor(void* object); |
| 7647 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7648 | private: |
| 7649 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7650 | return _internal_metadata_.arena(); |
| 7651 | } |
| 7652 | inline void* MaybeArenaPtr() const { |
| 7653 | return _internal_metadata_.raw_arena_ptr(); |
| 7654 | } |
| 7655 | public: |
| 7656 | |
| 7657 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7658 | |
| 7659 | // nested types ---------------------------------------------------- |
| 7660 | |
| 7661 | // accessors ------------------------------------------------------- |
| 7662 | |
| 7663 | // repeated int64 broadcast_sizes = 3; |
| 7664 | int broadcast_sizes_size() const; |
| 7665 | void clear_broadcast_sizes(); |
| 7666 | static const int kBroadcastSizesFieldNumber = 3; |
| 7667 | ::google::protobuf::int64 broadcast_sizes(int index) const; |
| 7668 | void set_broadcast_sizes(int index, ::google::protobuf::int64 value); |
| 7669 | void add_broadcast_sizes(::google::protobuf::int64 value); |
| 7670 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 7671 | broadcast_sizes() const; |
| 7672 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 7673 | mutable_broadcast_sizes(); |
| 7674 | |
| 7675 | // .xla.ComputationDataHandle operand = 2; |
| 7676 | bool has_operand() const; |
| 7677 | void clear_operand(); |
| 7678 | static const int kOperandFieldNumber = 2; |
| 7679 | const ::xla::ComputationDataHandle& operand() const; |
| 7680 | ::xla::ComputationDataHandle* release_operand(); |
| 7681 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7682 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7683 | void unsafe_arena_set_allocated_operand( |
| 7684 | ::xla::ComputationDataHandle* operand); |
| 7685 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7686 | |
| 7687 | // @@protoc_insertion_point(class_scope:xla.BroadcastRequest) |
| 7688 | private: |
| 7689 | |
| 7690 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7691 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7692 | typedef void InternalArenaConstructable_; |
| 7693 | typedef void DestructorSkippable_; |
| 7694 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > broadcast_sizes_; |
| 7695 | mutable int _broadcast_sizes_cached_byte_size_; |
| 7696 | ::xla::ComputationDataHandle* operand_; |
| 7697 | mutable int _cached_size_; |
| 7698 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 7699 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsBroadcastRequestImpl(); |
| 7700 | }; |
| 7701 | // ------------------------------------------------------------------- |
| 7702 | |
| 7703 | class PadRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.PadRequest) */ { |
| 7704 | public: |
| 7705 | PadRequest(); |
| 7706 | virtual ~PadRequest(); |
| 7707 | |
| 7708 | PadRequest(const PadRequest& from); |
| 7709 | |
| 7710 | inline PadRequest& operator=(const PadRequest& from) { |
| 7711 | CopyFrom(from); |
| 7712 | return *this; |
| 7713 | } |
| 7714 | #if LANG_CXX11 |
| 7715 | PadRequest(PadRequest&& from) noexcept |
| 7716 | : PadRequest() { |
| 7717 | *this = ::std::move(from); |
| 7718 | } |
| 7719 | |
| 7720 | inline PadRequest& operator=(PadRequest&& from) noexcept { |
| 7721 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 7722 | if (this != &from) InternalSwap(&from); |
| 7723 | } else { |
| 7724 | CopyFrom(from); |
| 7725 | } |
| 7726 | return *this; |
| 7727 | } |
| 7728 | #endif |
| 7729 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 7730 | return GetArenaNoVirtual(); |
| 7731 | } |
| 7732 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 7733 | return MaybeArenaPtr(); |
| 7734 | } |
| 7735 | static const ::google::protobuf::Descriptor* descriptor(); |
| 7736 | static const PadRequest& default_instance(); |
| 7737 | |
| 7738 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 7739 | static inline const PadRequest* internal_default_instance() { |
| 7740 | return reinterpret_cast<const PadRequest*>( |
| 7741 | &_PadRequest_default_instance_); |
| 7742 | } |
| 7743 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 7744 | 45; |
| 7745 | |
| 7746 | void UnsafeArenaSwap(PadRequest* other); |
| 7747 | void Swap(PadRequest* other); |
| 7748 | friend void swap(PadRequest& a, PadRequest& b) { |
| 7749 | a.Swap(&b); |
| 7750 | } |
| 7751 | |
| 7752 | // implements Message ---------------------------------------------- |
| 7753 | |
| 7754 | inline PadRequest* New() const PROTOBUF_FINAL { |
| 7755 | return ::google::protobuf::Arena::CreateMessage<PadRequest>(NULL); |
| 7756 | } |
| 7757 | |
| 7758 | PadRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 7759 | return ::google::protobuf::Arena::CreateMessage<PadRequest>(arena); |
| 7760 | } |
| 7761 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7762 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7763 | void CopyFrom(const PadRequest& from); |
| 7764 | void MergeFrom(const PadRequest& from); |
| 7765 | void Clear() PROTOBUF_FINAL; |
| 7766 | bool IsInitialized() const PROTOBUF_FINAL; |
| 7767 | |
| 7768 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 7769 | bool MergePartialFromCodedStream( |
| 7770 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 7771 | void SerializeWithCachedSizes( |
| 7772 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 7773 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 7774 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 7775 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 7776 | private: |
| 7777 | void SharedCtor(); |
| 7778 | void SharedDtor(); |
| 7779 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7780 | void InternalSwap(PadRequest* other); |
| 7781 | protected: |
| 7782 | explicit PadRequest(::google::protobuf::Arena* arena); |
| 7783 | private: |
| 7784 | static void ArenaDtor(void* object); |
| 7785 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7786 | private: |
| 7787 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7788 | return _internal_metadata_.arena(); |
| 7789 | } |
| 7790 | inline void* MaybeArenaPtr() const { |
| 7791 | return _internal_metadata_.raw_arena_ptr(); |
| 7792 | } |
| 7793 | public: |
| 7794 | |
| 7795 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7796 | |
| 7797 | // nested types ---------------------------------------------------- |
| 7798 | |
| 7799 | // accessors ------------------------------------------------------- |
| 7800 | |
| 7801 | // .xla.ComputationDataHandle operand = 2; |
| 7802 | bool has_operand() const; |
| 7803 | void clear_operand(); |
| 7804 | static const int kOperandFieldNumber = 2; |
| 7805 | const ::xla::ComputationDataHandle& operand() const; |
| 7806 | ::xla::ComputationDataHandle* release_operand(); |
| 7807 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7808 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7809 | void unsafe_arena_set_allocated_operand( |
| 7810 | ::xla::ComputationDataHandle* operand); |
| 7811 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7812 | |
| 7813 | // .xla.ComputationDataHandle padding_value = 3; |
| 7814 | bool has_padding_value() const; |
| 7815 | void clear_padding_value(); |
| 7816 | static const int kPaddingValueFieldNumber = 3; |
| 7817 | const ::xla::ComputationDataHandle& padding_value() const; |
| 7818 | ::xla::ComputationDataHandle* release_padding_value(); |
| 7819 | ::xla::ComputationDataHandle* mutable_padding_value(); |
| 7820 | void set_allocated_padding_value(::xla::ComputationDataHandle* padding_value); |
| 7821 | void unsafe_arena_set_allocated_padding_value( |
| 7822 | ::xla::ComputationDataHandle* padding_value); |
| 7823 | ::xla::ComputationDataHandle* unsafe_arena_release_padding_value(); |
| 7824 | |
| 7825 | // .xla.PaddingConfig padding_config = 4; |
| 7826 | bool has_padding_config() const; |
| 7827 | void clear_padding_config(); |
| 7828 | static const int kPaddingConfigFieldNumber = 4; |
| 7829 | const ::xla::PaddingConfig& padding_config() const; |
| 7830 | ::xla::PaddingConfig* release_padding_config(); |
| 7831 | ::xla::PaddingConfig* mutable_padding_config(); |
| 7832 | void set_allocated_padding_config(::xla::PaddingConfig* padding_config); |
| 7833 | void unsafe_arena_set_allocated_padding_config( |
| 7834 | ::xla::PaddingConfig* padding_config); |
| 7835 | ::xla::PaddingConfig* unsafe_arena_release_padding_config(); |
| 7836 | |
| 7837 | // @@protoc_insertion_point(class_scope:xla.PadRequest) |
| 7838 | private: |
| 7839 | |
| 7840 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7841 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7842 | typedef void InternalArenaConstructable_; |
| 7843 | typedef void DestructorSkippable_; |
| 7844 | ::xla::ComputationDataHandle* operand_; |
| 7845 | ::xla::ComputationDataHandle* padding_value_; |
| 7846 | ::xla::PaddingConfig* padding_config_; |
| 7847 | mutable int _cached_size_; |
| 7848 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 7849 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsPadRequestImpl(); |
| 7850 | }; |
| 7851 | // ------------------------------------------------------------------- |
| 7852 | |
| 7853 | class ReshapeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ReshapeRequest) */ { |
| 7854 | public: |
| 7855 | ReshapeRequest(); |
| 7856 | virtual ~ReshapeRequest(); |
| 7857 | |
| 7858 | ReshapeRequest(const ReshapeRequest& from); |
| 7859 | |
| 7860 | inline ReshapeRequest& operator=(const ReshapeRequest& from) { |
| 7861 | CopyFrom(from); |
| 7862 | return *this; |
| 7863 | } |
| 7864 | #if LANG_CXX11 |
| 7865 | ReshapeRequest(ReshapeRequest&& from) noexcept |
| 7866 | : ReshapeRequest() { |
| 7867 | *this = ::std::move(from); |
| 7868 | } |
| 7869 | |
| 7870 | inline ReshapeRequest& operator=(ReshapeRequest&& from) noexcept { |
| 7871 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 7872 | if (this != &from) InternalSwap(&from); |
| 7873 | } else { |
| 7874 | CopyFrom(from); |
| 7875 | } |
| 7876 | return *this; |
| 7877 | } |
| 7878 | #endif |
| 7879 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 7880 | return GetArenaNoVirtual(); |
| 7881 | } |
| 7882 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 7883 | return MaybeArenaPtr(); |
| 7884 | } |
| 7885 | static const ::google::protobuf::Descriptor* descriptor(); |
| 7886 | static const ReshapeRequest& default_instance(); |
| 7887 | |
| 7888 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 7889 | static inline const ReshapeRequest* internal_default_instance() { |
| 7890 | return reinterpret_cast<const ReshapeRequest*>( |
| 7891 | &_ReshapeRequest_default_instance_); |
| 7892 | } |
| 7893 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 7894 | 46; |
| 7895 | |
| 7896 | void UnsafeArenaSwap(ReshapeRequest* other); |
| 7897 | void Swap(ReshapeRequest* other); |
| 7898 | friend void swap(ReshapeRequest& a, ReshapeRequest& b) { |
| 7899 | a.Swap(&b); |
| 7900 | } |
| 7901 | |
| 7902 | // implements Message ---------------------------------------------- |
| 7903 | |
| 7904 | inline ReshapeRequest* New() const PROTOBUF_FINAL { |
| 7905 | return ::google::protobuf::Arena::CreateMessage<ReshapeRequest>(NULL); |
| 7906 | } |
| 7907 | |
| 7908 | ReshapeRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 7909 | return ::google::protobuf::Arena::CreateMessage<ReshapeRequest>(arena); |
| 7910 | } |
| 7911 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7912 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 7913 | void CopyFrom(const ReshapeRequest& from); |
| 7914 | void MergeFrom(const ReshapeRequest& from); |
| 7915 | void Clear() PROTOBUF_FINAL; |
| 7916 | bool IsInitialized() const PROTOBUF_FINAL; |
| 7917 | |
| 7918 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 7919 | bool MergePartialFromCodedStream( |
| 7920 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 7921 | void SerializeWithCachedSizes( |
| 7922 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 7923 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 7924 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 7925 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 7926 | private: |
| 7927 | void SharedCtor(); |
| 7928 | void SharedDtor(); |
| 7929 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 7930 | void InternalSwap(ReshapeRequest* other); |
| 7931 | protected: |
| 7932 | explicit ReshapeRequest(::google::protobuf::Arena* arena); |
| 7933 | private: |
| 7934 | static void ArenaDtor(void* object); |
| 7935 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 7936 | private: |
| 7937 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 7938 | return _internal_metadata_.arena(); |
| 7939 | } |
| 7940 | inline void* MaybeArenaPtr() const { |
| 7941 | return _internal_metadata_.raw_arena_ptr(); |
| 7942 | } |
| 7943 | public: |
| 7944 | |
| 7945 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 7946 | |
| 7947 | // nested types ---------------------------------------------------- |
| 7948 | |
| 7949 | // accessors ------------------------------------------------------- |
| 7950 | |
| 7951 | // repeated int64 dimensions = 3; |
| 7952 | int dimensions_size() const; |
| 7953 | void clear_dimensions(); |
| 7954 | static const int kDimensionsFieldNumber = 3; |
| 7955 | ::google::protobuf::int64 dimensions(int index) const; |
| 7956 | void set_dimensions(int index, ::google::protobuf::int64 value); |
| 7957 | void add_dimensions(::google::protobuf::int64 value); |
| 7958 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 7959 | dimensions() const; |
| 7960 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 7961 | mutable_dimensions(); |
| 7962 | |
| 7963 | // repeated int64 new_sizes = 4; |
| 7964 | int new_sizes_size() const; |
| 7965 | void clear_new_sizes(); |
| 7966 | static const int kNewSizesFieldNumber = 4; |
| 7967 | ::google::protobuf::int64 new_sizes(int index) const; |
| 7968 | void set_new_sizes(int index, ::google::protobuf::int64 value); |
| 7969 | void add_new_sizes(::google::protobuf::int64 value); |
| 7970 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 7971 | new_sizes() const; |
| 7972 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 7973 | mutable_new_sizes(); |
| 7974 | |
| 7975 | // .xla.ComputationDataHandle operand = 2; |
| 7976 | bool has_operand() const; |
| 7977 | void clear_operand(); |
| 7978 | static const int kOperandFieldNumber = 2; |
| 7979 | const ::xla::ComputationDataHandle& operand() const; |
| 7980 | ::xla::ComputationDataHandle* release_operand(); |
| 7981 | ::xla::ComputationDataHandle* mutable_operand(); |
| 7982 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 7983 | void unsafe_arena_set_allocated_operand( |
| 7984 | ::xla::ComputationDataHandle* operand); |
| 7985 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 7986 | |
| 7987 | // @@protoc_insertion_point(class_scope:xla.ReshapeRequest) |
| 7988 | private: |
| 7989 | |
| 7990 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 7991 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 7992 | typedef void InternalArenaConstructable_; |
| 7993 | typedef void DestructorSkippable_; |
| 7994 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; |
| 7995 | mutable int _dimensions_cached_byte_size_; |
| 7996 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > new_sizes_; |
| 7997 | mutable int _new_sizes_cached_byte_size_; |
| 7998 | ::xla::ComputationDataHandle* operand_; |
| 7999 | mutable int _cached_size_; |
| 8000 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8001 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsReshapeRequestImpl(); |
| 8002 | }; |
| 8003 | // ------------------------------------------------------------------- |
| 8004 | |
| 8005 | class TransposeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransposeRequest) */ { |
| 8006 | public: |
| 8007 | TransposeRequest(); |
| 8008 | virtual ~TransposeRequest(); |
| 8009 | |
| 8010 | TransposeRequest(const TransposeRequest& from); |
| 8011 | |
| 8012 | inline TransposeRequest& operator=(const TransposeRequest& from) { |
| 8013 | CopyFrom(from); |
| 8014 | return *this; |
| 8015 | } |
| 8016 | #if LANG_CXX11 |
| 8017 | TransposeRequest(TransposeRequest&& from) noexcept |
| 8018 | : TransposeRequest() { |
| 8019 | *this = ::std::move(from); |
| 8020 | } |
| 8021 | |
| 8022 | inline TransposeRequest& operator=(TransposeRequest&& from) noexcept { |
| 8023 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8024 | if (this != &from) InternalSwap(&from); |
| 8025 | } else { |
| 8026 | CopyFrom(from); |
| 8027 | } |
| 8028 | return *this; |
| 8029 | } |
| 8030 | #endif |
| 8031 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8032 | return GetArenaNoVirtual(); |
| 8033 | } |
| 8034 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8035 | return MaybeArenaPtr(); |
| 8036 | } |
| 8037 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8038 | static const TransposeRequest& default_instance(); |
| 8039 | |
| 8040 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8041 | static inline const TransposeRequest* internal_default_instance() { |
| 8042 | return reinterpret_cast<const TransposeRequest*>( |
| 8043 | &_TransposeRequest_default_instance_); |
| 8044 | } |
| 8045 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8046 | 47; |
| 8047 | |
| 8048 | void UnsafeArenaSwap(TransposeRequest* other); |
| 8049 | void Swap(TransposeRequest* other); |
| 8050 | friend void swap(TransposeRequest& a, TransposeRequest& b) { |
| 8051 | a.Swap(&b); |
| 8052 | } |
| 8053 | |
| 8054 | // implements Message ---------------------------------------------- |
| 8055 | |
| 8056 | inline TransposeRequest* New() const PROTOBUF_FINAL { |
| 8057 | return ::google::protobuf::Arena::CreateMessage<TransposeRequest>(NULL); |
| 8058 | } |
| 8059 | |
| 8060 | TransposeRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8061 | return ::google::protobuf::Arena::CreateMessage<TransposeRequest>(arena); |
| 8062 | } |
| 8063 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8064 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8065 | void CopyFrom(const TransposeRequest& from); |
| 8066 | void MergeFrom(const TransposeRequest& from); |
| 8067 | void Clear() PROTOBUF_FINAL; |
| 8068 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8069 | |
| 8070 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8071 | bool MergePartialFromCodedStream( |
| 8072 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8073 | void SerializeWithCachedSizes( |
| 8074 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8075 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8076 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8077 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8078 | private: |
| 8079 | void SharedCtor(); |
| 8080 | void SharedDtor(); |
| 8081 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8082 | void InternalSwap(TransposeRequest* other); |
| 8083 | protected: |
| 8084 | explicit TransposeRequest(::google::protobuf::Arena* arena); |
| 8085 | private: |
| 8086 | static void ArenaDtor(void* object); |
| 8087 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8088 | private: |
| 8089 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8090 | return _internal_metadata_.arena(); |
| 8091 | } |
| 8092 | inline void* MaybeArenaPtr() const { |
| 8093 | return _internal_metadata_.raw_arena_ptr(); |
| 8094 | } |
| 8095 | public: |
| 8096 | |
| 8097 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8098 | |
| 8099 | // nested types ---------------------------------------------------- |
| 8100 | |
| 8101 | // accessors ------------------------------------------------------- |
| 8102 | |
| 8103 | // repeated int64 dimensions = 3; |
| 8104 | int dimensions_size() const; |
| 8105 | void clear_dimensions(); |
| 8106 | static const int kDimensionsFieldNumber = 3; |
| 8107 | ::google::protobuf::int64 dimensions(int index) const; |
| 8108 | void set_dimensions(int index, ::google::protobuf::int64 value); |
| 8109 | void add_dimensions(::google::protobuf::int64 value); |
| 8110 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 8111 | dimensions() const; |
| 8112 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 8113 | mutable_dimensions(); |
| 8114 | |
| 8115 | // .xla.ComputationDataHandle operand = 2; |
| 8116 | bool has_operand() const; |
| 8117 | void clear_operand(); |
| 8118 | static const int kOperandFieldNumber = 2; |
| 8119 | const ::xla::ComputationDataHandle& operand() const; |
| 8120 | ::xla::ComputationDataHandle* release_operand(); |
| 8121 | ::xla::ComputationDataHandle* mutable_operand(); |
| 8122 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 8123 | void unsafe_arena_set_allocated_operand( |
| 8124 | ::xla::ComputationDataHandle* operand); |
| 8125 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 8126 | |
| 8127 | // @@protoc_insertion_point(class_scope:xla.TransposeRequest) |
| 8128 | private: |
| 8129 | |
| 8130 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8131 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8132 | typedef void InternalArenaConstructable_; |
| 8133 | typedef void DestructorSkippable_; |
| 8134 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; |
| 8135 | mutable int _dimensions_cached_byte_size_; |
| 8136 | ::xla::ComputationDataHandle* operand_; |
| 8137 | mutable int _cached_size_; |
| 8138 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8139 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsTransposeRequestImpl(); |
| 8140 | }; |
| 8141 | // ------------------------------------------------------------------- |
| 8142 | |
| 8143 | class ParameterRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ParameterRequest) */ { |
| 8144 | public: |
| 8145 | ParameterRequest(); |
| 8146 | virtual ~ParameterRequest(); |
| 8147 | |
| 8148 | ParameterRequest(const ParameterRequest& from); |
| 8149 | |
| 8150 | inline ParameterRequest& operator=(const ParameterRequest& from) { |
| 8151 | CopyFrom(from); |
| 8152 | return *this; |
| 8153 | } |
| 8154 | #if LANG_CXX11 |
| 8155 | ParameterRequest(ParameterRequest&& from) noexcept |
| 8156 | : ParameterRequest() { |
| 8157 | *this = ::std::move(from); |
| 8158 | } |
| 8159 | |
| 8160 | inline ParameterRequest& operator=(ParameterRequest&& from) noexcept { |
| 8161 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8162 | if (this != &from) InternalSwap(&from); |
| 8163 | } else { |
| 8164 | CopyFrom(from); |
| 8165 | } |
| 8166 | return *this; |
| 8167 | } |
| 8168 | #endif |
| 8169 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8170 | return GetArenaNoVirtual(); |
| 8171 | } |
| 8172 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8173 | return MaybeArenaPtr(); |
| 8174 | } |
| 8175 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8176 | static const ParameterRequest& default_instance(); |
| 8177 | |
| 8178 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8179 | static inline const ParameterRequest* internal_default_instance() { |
| 8180 | return reinterpret_cast<const ParameterRequest*>( |
| 8181 | &_ParameterRequest_default_instance_); |
| 8182 | } |
| 8183 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8184 | 48; |
| 8185 | |
| 8186 | void UnsafeArenaSwap(ParameterRequest* other); |
| 8187 | void Swap(ParameterRequest* other); |
| 8188 | friend void swap(ParameterRequest& a, ParameterRequest& b) { |
| 8189 | a.Swap(&b); |
| 8190 | } |
| 8191 | |
| 8192 | // implements Message ---------------------------------------------- |
| 8193 | |
| 8194 | inline ParameterRequest* New() const PROTOBUF_FINAL { |
| 8195 | return ::google::protobuf::Arena::CreateMessage<ParameterRequest>(NULL); |
| 8196 | } |
| 8197 | |
| 8198 | ParameterRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8199 | return ::google::protobuf::Arena::CreateMessage<ParameterRequest>(arena); |
| 8200 | } |
| 8201 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8202 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8203 | void CopyFrom(const ParameterRequest& from); |
| 8204 | void MergeFrom(const ParameterRequest& from); |
| 8205 | void Clear() PROTOBUF_FINAL; |
| 8206 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8207 | |
| 8208 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8209 | bool MergePartialFromCodedStream( |
| 8210 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8211 | void SerializeWithCachedSizes( |
| 8212 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8213 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8214 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8215 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8216 | private: |
| 8217 | void SharedCtor(); |
| 8218 | void SharedDtor(); |
| 8219 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8220 | void InternalSwap(ParameterRequest* other); |
| 8221 | protected: |
| 8222 | explicit ParameterRequest(::google::protobuf::Arena* arena); |
| 8223 | private: |
| 8224 | static void ArenaDtor(void* object); |
| 8225 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8226 | private: |
| 8227 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8228 | return _internal_metadata_.arena(); |
| 8229 | } |
| 8230 | inline void* MaybeArenaPtr() const { |
| 8231 | return _internal_metadata_.raw_arena_ptr(); |
| 8232 | } |
| 8233 | public: |
| 8234 | |
| 8235 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8236 | |
| 8237 | // nested types ---------------------------------------------------- |
| 8238 | |
| 8239 | // accessors ------------------------------------------------------- |
| 8240 | |
| 8241 | // string name = 4; |
| 8242 | void clear_name(); |
| 8243 | static const int kNameFieldNumber = 4; |
| 8244 | const ::std::string& name() const; |
| 8245 | void set_name(const ::std::string& value); |
| 8246 | #if LANG_CXX11 |
| 8247 | void set_name(::std::string&& value); |
| 8248 | #endif |
| 8249 | void set_name(const char* value); |
| 8250 | void set_name(const char* value, size_t size); |
| 8251 | ::std::string* mutable_name(); |
| 8252 | ::std::string* release_name(); |
| 8253 | void set_allocated_name(::std::string* name); |
| 8254 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 8255 | " string fields are deprecated and will be removed in a" |
| 8256 | " future release." ) |
| 8257 | ::std::string* unsafe_arena_release_name(); |
| 8258 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 8259 | " string fields are deprecated and will be removed in a" |
| 8260 | " future release." ) |
| 8261 | void unsafe_arena_set_allocated_name( |
| 8262 | ::std::string* name); |
| 8263 | |
| 8264 | // .xla.Shape shape = 2; |
| 8265 | bool has_shape() const; |
| 8266 | void clear_shape(); |
| 8267 | static const int kShapeFieldNumber = 2; |
| 8268 | const ::xla::Shape& shape() const; |
| 8269 | ::xla::Shape* release_shape(); |
| 8270 | ::xla::Shape* mutable_shape(); |
| 8271 | void set_allocated_shape(::xla::Shape* shape); |
| 8272 | void unsafe_arena_set_allocated_shape( |
| 8273 | ::xla::Shape* shape); |
| 8274 | ::xla::Shape* unsafe_arena_release_shape(); |
| 8275 | |
| 8276 | // int64 parameter = 3; |
| 8277 | void clear_parameter(); |
| 8278 | static const int kParameterFieldNumber = 3; |
| 8279 | ::google::protobuf::int64 parameter() const; |
| 8280 | void set_parameter(::google::protobuf::int64 value); |
| 8281 | |
| 8282 | // @@protoc_insertion_point(class_scope:xla.ParameterRequest) |
| 8283 | private: |
| 8284 | |
| 8285 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8286 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8287 | typedef void InternalArenaConstructable_; |
| 8288 | typedef void DestructorSkippable_; |
| 8289 | ::google::protobuf::internal::ArenaStringPtr name_; |
| 8290 | ::xla::Shape* shape_; |
| 8291 | ::google::protobuf::int64 parameter_; |
| 8292 | mutable int _cached_size_; |
| 8293 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8294 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsParameterRequestImpl(); |
| 8295 | }; |
| 8296 | // ------------------------------------------------------------------- |
| 8297 | |
| 8298 | class GetLocalShapeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetLocalShapeRequest) */ { |
| 8299 | public: |
| 8300 | GetLocalShapeRequest(); |
| 8301 | virtual ~GetLocalShapeRequest(); |
| 8302 | |
| 8303 | GetLocalShapeRequest(const GetLocalShapeRequest& from); |
| 8304 | |
| 8305 | inline GetLocalShapeRequest& operator=(const GetLocalShapeRequest& from) { |
| 8306 | CopyFrom(from); |
| 8307 | return *this; |
| 8308 | } |
| 8309 | #if LANG_CXX11 |
| 8310 | GetLocalShapeRequest(GetLocalShapeRequest&& from) noexcept |
| 8311 | : GetLocalShapeRequest() { |
| 8312 | *this = ::std::move(from); |
| 8313 | } |
| 8314 | |
| 8315 | inline GetLocalShapeRequest& operator=(GetLocalShapeRequest&& from) noexcept { |
| 8316 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8317 | if (this != &from) InternalSwap(&from); |
| 8318 | } else { |
| 8319 | CopyFrom(from); |
| 8320 | } |
| 8321 | return *this; |
| 8322 | } |
| 8323 | #endif |
| 8324 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8325 | return GetArenaNoVirtual(); |
| 8326 | } |
| 8327 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8328 | return MaybeArenaPtr(); |
| 8329 | } |
| 8330 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8331 | static const GetLocalShapeRequest& default_instance(); |
| 8332 | |
| 8333 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8334 | static inline const GetLocalShapeRequest* internal_default_instance() { |
| 8335 | return reinterpret_cast<const GetLocalShapeRequest*>( |
| 8336 | &_GetLocalShapeRequest_default_instance_); |
| 8337 | } |
| 8338 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8339 | 49; |
| 8340 | |
| 8341 | void UnsafeArenaSwap(GetLocalShapeRequest* other); |
| 8342 | void Swap(GetLocalShapeRequest* other); |
| 8343 | friend void swap(GetLocalShapeRequest& a, GetLocalShapeRequest& b) { |
| 8344 | a.Swap(&b); |
| 8345 | } |
| 8346 | |
| 8347 | // implements Message ---------------------------------------------- |
| 8348 | |
| 8349 | inline GetLocalShapeRequest* New() const PROTOBUF_FINAL { |
| 8350 | return ::google::protobuf::Arena::CreateMessage<GetLocalShapeRequest>(NULL); |
| 8351 | } |
| 8352 | |
| 8353 | GetLocalShapeRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8354 | return ::google::protobuf::Arena::CreateMessage<GetLocalShapeRequest>(arena); |
| 8355 | } |
| 8356 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8357 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8358 | void CopyFrom(const GetLocalShapeRequest& from); |
| 8359 | void MergeFrom(const GetLocalShapeRequest& from); |
| 8360 | void Clear() PROTOBUF_FINAL; |
| 8361 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8362 | |
| 8363 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8364 | bool MergePartialFromCodedStream( |
| 8365 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8366 | void SerializeWithCachedSizes( |
| 8367 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8368 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8369 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8370 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8371 | private: |
| 8372 | void SharedCtor(); |
| 8373 | void SharedDtor(); |
| 8374 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8375 | void InternalSwap(GetLocalShapeRequest* other); |
| 8376 | protected: |
| 8377 | explicit GetLocalShapeRequest(::google::protobuf::Arena* arena); |
| 8378 | private: |
| 8379 | static void ArenaDtor(void* object); |
| 8380 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8381 | private: |
| 8382 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8383 | return _internal_metadata_.arena(); |
| 8384 | } |
| 8385 | inline void* MaybeArenaPtr() const { |
| 8386 | return _internal_metadata_.raw_arena_ptr(); |
| 8387 | } |
| 8388 | public: |
| 8389 | |
| 8390 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8391 | |
| 8392 | // nested types ---------------------------------------------------- |
| 8393 | |
| 8394 | // accessors ------------------------------------------------------- |
| 8395 | |
| 8396 | // .xla.ComputationHandle computation = 1; |
| 8397 | bool has_computation() const; |
| 8398 | void clear_computation(); |
| 8399 | static const int kComputationFieldNumber = 1; |
| 8400 | const ::xla::ComputationHandle& computation() const; |
| 8401 | ::xla::ComputationHandle* release_computation(); |
| 8402 | ::xla::ComputationHandle* mutable_computation(); |
| 8403 | void set_allocated_computation(::xla::ComputationHandle* computation); |
| 8404 | void unsafe_arena_set_allocated_computation( |
| 8405 | ::xla::ComputationHandle* computation); |
| 8406 | ::xla::ComputationHandle* unsafe_arena_release_computation(); |
| 8407 | |
| 8408 | // .xla.ComputationDataHandle operand = 2; |
| 8409 | bool has_operand() const; |
| 8410 | void clear_operand(); |
| 8411 | static const int kOperandFieldNumber = 2; |
| 8412 | const ::xla::ComputationDataHandle& operand() const; |
| 8413 | ::xla::ComputationDataHandle* release_operand(); |
| 8414 | ::xla::ComputationDataHandle* mutable_operand(); |
| 8415 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 8416 | void unsafe_arena_set_allocated_operand( |
| 8417 | ::xla::ComputationDataHandle* operand); |
| 8418 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 8419 | |
| 8420 | // @@protoc_insertion_point(class_scope:xla.GetLocalShapeRequest) |
| 8421 | private: |
| 8422 | |
| 8423 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8424 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8425 | typedef void InternalArenaConstructable_; |
| 8426 | typedef void DestructorSkippable_; |
| 8427 | ::xla::ComputationHandle* computation_; |
| 8428 | ::xla::ComputationDataHandle* operand_; |
| 8429 | mutable int _cached_size_; |
| 8430 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8431 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsGetLocalShapeRequestImpl(); |
| 8432 | }; |
| 8433 | // ------------------------------------------------------------------- |
| 8434 | |
| 8435 | class GetLocalShapeResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetLocalShapeResponse) */ { |
| 8436 | public: |
| 8437 | GetLocalShapeResponse(); |
| 8438 | virtual ~GetLocalShapeResponse(); |
| 8439 | |
| 8440 | GetLocalShapeResponse(const GetLocalShapeResponse& from); |
| 8441 | |
| 8442 | inline GetLocalShapeResponse& operator=(const GetLocalShapeResponse& from) { |
| 8443 | CopyFrom(from); |
| 8444 | return *this; |
| 8445 | } |
| 8446 | #if LANG_CXX11 |
| 8447 | GetLocalShapeResponse(GetLocalShapeResponse&& from) noexcept |
| 8448 | : GetLocalShapeResponse() { |
| 8449 | *this = ::std::move(from); |
| 8450 | } |
| 8451 | |
| 8452 | inline GetLocalShapeResponse& operator=(GetLocalShapeResponse&& from) noexcept { |
| 8453 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8454 | if (this != &from) InternalSwap(&from); |
| 8455 | } else { |
| 8456 | CopyFrom(from); |
| 8457 | } |
| 8458 | return *this; |
| 8459 | } |
| 8460 | #endif |
| 8461 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8462 | return GetArenaNoVirtual(); |
| 8463 | } |
| 8464 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8465 | return MaybeArenaPtr(); |
| 8466 | } |
| 8467 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8468 | static const GetLocalShapeResponse& default_instance(); |
| 8469 | |
| 8470 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8471 | static inline const GetLocalShapeResponse* internal_default_instance() { |
| 8472 | return reinterpret_cast<const GetLocalShapeResponse*>( |
| 8473 | &_GetLocalShapeResponse_default_instance_); |
| 8474 | } |
| 8475 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8476 | 50; |
| 8477 | |
| 8478 | void UnsafeArenaSwap(GetLocalShapeResponse* other); |
| 8479 | void Swap(GetLocalShapeResponse* other); |
| 8480 | friend void swap(GetLocalShapeResponse& a, GetLocalShapeResponse& b) { |
| 8481 | a.Swap(&b); |
| 8482 | } |
| 8483 | |
| 8484 | // implements Message ---------------------------------------------- |
| 8485 | |
| 8486 | inline GetLocalShapeResponse* New() const PROTOBUF_FINAL { |
| 8487 | return ::google::protobuf::Arena::CreateMessage<GetLocalShapeResponse>(NULL); |
| 8488 | } |
| 8489 | |
| 8490 | GetLocalShapeResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8491 | return ::google::protobuf::Arena::CreateMessage<GetLocalShapeResponse>(arena); |
| 8492 | } |
| 8493 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8494 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8495 | void CopyFrom(const GetLocalShapeResponse& from); |
| 8496 | void MergeFrom(const GetLocalShapeResponse& from); |
| 8497 | void Clear() PROTOBUF_FINAL; |
| 8498 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8499 | |
| 8500 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8501 | bool MergePartialFromCodedStream( |
| 8502 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8503 | void SerializeWithCachedSizes( |
| 8504 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8505 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8506 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8507 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8508 | private: |
| 8509 | void SharedCtor(); |
| 8510 | void SharedDtor(); |
| 8511 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8512 | void InternalSwap(GetLocalShapeResponse* other); |
| 8513 | protected: |
| 8514 | explicit GetLocalShapeResponse(::google::protobuf::Arena* arena); |
| 8515 | private: |
| 8516 | static void ArenaDtor(void* object); |
| 8517 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8518 | private: |
| 8519 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8520 | return _internal_metadata_.arena(); |
| 8521 | } |
| 8522 | inline void* MaybeArenaPtr() const { |
| 8523 | return _internal_metadata_.raw_arena_ptr(); |
| 8524 | } |
| 8525 | public: |
| 8526 | |
| 8527 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8528 | |
| 8529 | // nested types ---------------------------------------------------- |
| 8530 | |
| 8531 | // accessors ------------------------------------------------------- |
| 8532 | |
| 8533 | // .xla.Shape shape = 1; |
| 8534 | bool has_shape() const; |
| 8535 | void clear_shape(); |
| 8536 | static const int kShapeFieldNumber = 1; |
| 8537 | const ::xla::Shape& shape() const; |
| 8538 | ::xla::Shape* release_shape(); |
| 8539 | ::xla::Shape* mutable_shape(); |
| 8540 | void set_allocated_shape(::xla::Shape* shape); |
| 8541 | void unsafe_arena_set_allocated_shape( |
| 8542 | ::xla::Shape* shape); |
| 8543 | ::xla::Shape* unsafe_arena_release_shape(); |
| 8544 | |
| 8545 | // @@protoc_insertion_point(class_scope:xla.GetLocalShapeResponse) |
| 8546 | private: |
| 8547 | |
| 8548 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8549 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8550 | typedef void InternalArenaConstructable_; |
| 8551 | typedef void DestructorSkippable_; |
| 8552 | ::xla::Shape* shape_; |
| 8553 | mutable int _cached_size_; |
| 8554 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8555 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsGetLocalShapeResponseImpl(); |
| 8556 | }; |
| 8557 | // ------------------------------------------------------------------- |
| 8558 | |
| 8559 | class TraceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TraceRequest) */ { |
| 8560 | public: |
| 8561 | TraceRequest(); |
| 8562 | virtual ~TraceRequest(); |
| 8563 | |
| 8564 | TraceRequest(const TraceRequest& from); |
| 8565 | |
| 8566 | inline TraceRequest& operator=(const TraceRequest& from) { |
| 8567 | CopyFrom(from); |
| 8568 | return *this; |
| 8569 | } |
| 8570 | #if LANG_CXX11 |
| 8571 | TraceRequest(TraceRequest&& from) noexcept |
| 8572 | : TraceRequest() { |
| 8573 | *this = ::std::move(from); |
| 8574 | } |
| 8575 | |
| 8576 | inline TraceRequest& operator=(TraceRequest&& from) noexcept { |
| 8577 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8578 | if (this != &from) InternalSwap(&from); |
| 8579 | } else { |
| 8580 | CopyFrom(from); |
| 8581 | } |
| 8582 | return *this; |
| 8583 | } |
| 8584 | #endif |
| 8585 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8586 | return GetArenaNoVirtual(); |
| 8587 | } |
| 8588 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8589 | return MaybeArenaPtr(); |
| 8590 | } |
| 8591 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8592 | static const TraceRequest& default_instance(); |
| 8593 | |
| 8594 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8595 | static inline const TraceRequest* internal_default_instance() { |
| 8596 | return reinterpret_cast<const TraceRequest*>( |
| 8597 | &_TraceRequest_default_instance_); |
| 8598 | } |
| 8599 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8600 | 51; |
| 8601 | |
| 8602 | void UnsafeArenaSwap(TraceRequest* other); |
| 8603 | void Swap(TraceRequest* other); |
| 8604 | friend void swap(TraceRequest& a, TraceRequest& b) { |
| 8605 | a.Swap(&b); |
| 8606 | } |
| 8607 | |
| 8608 | // implements Message ---------------------------------------------- |
| 8609 | |
| 8610 | inline TraceRequest* New() const PROTOBUF_FINAL { |
| 8611 | return ::google::protobuf::Arena::CreateMessage<TraceRequest>(NULL); |
| 8612 | } |
| 8613 | |
| 8614 | TraceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8615 | return ::google::protobuf::Arena::CreateMessage<TraceRequest>(arena); |
| 8616 | } |
| 8617 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8618 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8619 | void CopyFrom(const TraceRequest& from); |
| 8620 | void MergeFrom(const TraceRequest& from); |
| 8621 | void Clear() PROTOBUF_FINAL; |
| 8622 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8623 | |
| 8624 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8625 | bool MergePartialFromCodedStream( |
| 8626 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8627 | void SerializeWithCachedSizes( |
| 8628 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8629 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8630 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8631 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8632 | private: |
| 8633 | void SharedCtor(); |
| 8634 | void SharedDtor(); |
| 8635 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8636 | void InternalSwap(TraceRequest* other); |
| 8637 | protected: |
| 8638 | explicit TraceRequest(::google::protobuf::Arena* arena); |
| 8639 | private: |
| 8640 | static void ArenaDtor(void* object); |
| 8641 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8642 | private: |
| 8643 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8644 | return _internal_metadata_.arena(); |
| 8645 | } |
| 8646 | inline void* MaybeArenaPtr() const { |
| 8647 | return _internal_metadata_.raw_arena_ptr(); |
| 8648 | } |
| 8649 | public: |
| 8650 | |
| 8651 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8652 | |
| 8653 | // nested types ---------------------------------------------------- |
| 8654 | |
| 8655 | // accessors ------------------------------------------------------- |
| 8656 | |
| 8657 | // string tag = 2; |
| 8658 | void clear_tag(); |
| 8659 | static const int kTagFieldNumber = 2; |
| 8660 | const ::std::string& tag() const; |
| 8661 | void set_tag(const ::std::string& value); |
| 8662 | #if LANG_CXX11 |
| 8663 | void set_tag(::std::string&& value); |
| 8664 | #endif |
| 8665 | void set_tag(const char* value); |
| 8666 | void set_tag(const char* value, size_t size); |
| 8667 | ::std::string* mutable_tag(); |
| 8668 | ::std::string* release_tag(); |
| 8669 | void set_allocated_tag(::std::string* tag); |
| 8670 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 8671 | " string fields are deprecated and will be removed in a" |
| 8672 | " future release." ) |
| 8673 | ::std::string* unsafe_arena_release_tag(); |
| 8674 | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
| 8675 | " string fields are deprecated and will be removed in a" |
| 8676 | " future release." ) |
| 8677 | void unsafe_arena_set_allocated_tag( |
| 8678 | ::std::string* tag); |
| 8679 | |
| 8680 | // .xla.ComputationDataHandle operand = 3; |
| 8681 | bool has_operand() const; |
| 8682 | void clear_operand(); |
| 8683 | static const int kOperandFieldNumber = 3; |
| 8684 | const ::xla::ComputationDataHandle& operand() const; |
| 8685 | ::xla::ComputationDataHandle* release_operand(); |
| 8686 | ::xla::ComputationDataHandle* mutable_operand(); |
| 8687 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 8688 | void unsafe_arena_set_allocated_operand( |
| 8689 | ::xla::ComputationDataHandle* operand); |
| 8690 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 8691 | |
| 8692 | // @@protoc_insertion_point(class_scope:xla.TraceRequest) |
| 8693 | private: |
| 8694 | |
| 8695 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8696 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8697 | typedef void InternalArenaConstructable_; |
| 8698 | typedef void DestructorSkippable_; |
| 8699 | ::google::protobuf::internal::ArenaStringPtr tag_; |
| 8700 | ::xla::ComputationDataHandle* operand_; |
| 8701 | mutable int _cached_size_; |
| 8702 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8703 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsTraceRequestImpl(); |
| 8704 | }; |
| 8705 | // ------------------------------------------------------------------- |
| 8706 | |
| 8707 | class ConvertRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConvertRequest) */ { |
| 8708 | public: |
| 8709 | ConvertRequest(); |
| 8710 | virtual ~ConvertRequest(); |
| 8711 | |
| 8712 | ConvertRequest(const ConvertRequest& from); |
| 8713 | |
| 8714 | inline ConvertRequest& operator=(const ConvertRequest& from) { |
| 8715 | CopyFrom(from); |
| 8716 | return *this; |
| 8717 | } |
| 8718 | #if LANG_CXX11 |
| 8719 | ConvertRequest(ConvertRequest&& from) noexcept |
| 8720 | : ConvertRequest() { |
| 8721 | *this = ::std::move(from); |
| 8722 | } |
| 8723 | |
| 8724 | inline ConvertRequest& operator=(ConvertRequest&& from) noexcept { |
| 8725 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8726 | if (this != &from) InternalSwap(&from); |
| 8727 | } else { |
| 8728 | CopyFrom(from); |
| 8729 | } |
| 8730 | return *this; |
| 8731 | } |
| 8732 | #endif |
| 8733 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8734 | return GetArenaNoVirtual(); |
| 8735 | } |
| 8736 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8737 | return MaybeArenaPtr(); |
| 8738 | } |
| 8739 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8740 | static const ConvertRequest& default_instance(); |
| 8741 | |
| 8742 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8743 | static inline const ConvertRequest* internal_default_instance() { |
| 8744 | return reinterpret_cast<const ConvertRequest*>( |
| 8745 | &_ConvertRequest_default_instance_); |
| 8746 | } |
| 8747 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8748 | 52; |
| 8749 | |
| 8750 | void UnsafeArenaSwap(ConvertRequest* other); |
| 8751 | void Swap(ConvertRequest* other); |
| 8752 | friend void swap(ConvertRequest& a, ConvertRequest& b) { |
| 8753 | a.Swap(&b); |
| 8754 | } |
| 8755 | |
| 8756 | // implements Message ---------------------------------------------- |
| 8757 | |
| 8758 | inline ConvertRequest* New() const PROTOBUF_FINAL { |
| 8759 | return ::google::protobuf::Arena::CreateMessage<ConvertRequest>(NULL); |
| 8760 | } |
| 8761 | |
| 8762 | ConvertRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8763 | return ::google::protobuf::Arena::CreateMessage<ConvertRequest>(arena); |
| 8764 | } |
| 8765 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8766 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8767 | void CopyFrom(const ConvertRequest& from); |
| 8768 | void MergeFrom(const ConvertRequest& from); |
| 8769 | void Clear() PROTOBUF_FINAL; |
| 8770 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8771 | |
| 8772 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8773 | bool MergePartialFromCodedStream( |
| 8774 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8775 | void SerializeWithCachedSizes( |
| 8776 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8777 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8778 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8779 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8780 | private: |
| 8781 | void SharedCtor(); |
| 8782 | void SharedDtor(); |
| 8783 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8784 | void InternalSwap(ConvertRequest* other); |
| 8785 | protected: |
| 8786 | explicit ConvertRequest(::google::protobuf::Arena* arena); |
| 8787 | private: |
| 8788 | static void ArenaDtor(void* object); |
| 8789 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8790 | private: |
| 8791 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8792 | return _internal_metadata_.arena(); |
| 8793 | } |
| 8794 | inline void* MaybeArenaPtr() const { |
| 8795 | return _internal_metadata_.raw_arena_ptr(); |
| 8796 | } |
| 8797 | public: |
| 8798 | |
| 8799 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8800 | |
| 8801 | // nested types ---------------------------------------------------- |
| 8802 | |
| 8803 | // accessors ------------------------------------------------------- |
| 8804 | |
| 8805 | // .xla.ComputationDataHandle operand = 2; |
| 8806 | bool has_operand() const; |
| 8807 | void clear_operand(); |
| 8808 | static const int kOperandFieldNumber = 2; |
| 8809 | const ::xla::ComputationDataHandle& operand() const; |
| 8810 | ::xla::ComputationDataHandle* release_operand(); |
| 8811 | ::xla::ComputationDataHandle* mutable_operand(); |
| 8812 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 8813 | void unsafe_arena_set_allocated_operand( |
| 8814 | ::xla::ComputationDataHandle* operand); |
| 8815 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 8816 | |
| 8817 | // .xla.PrimitiveType new_element_type = 3; |
| 8818 | void clear_new_element_type(); |
| 8819 | static const int kNewElementTypeFieldNumber = 3; |
| 8820 | ::xla::PrimitiveType new_element_type() const; |
| 8821 | void set_new_element_type(::xla::PrimitiveType value); |
| 8822 | |
| 8823 | // @@protoc_insertion_point(class_scope:xla.ConvertRequest) |
| 8824 | private: |
| 8825 | |
| 8826 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8827 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8828 | typedef void InternalArenaConstructable_; |
| 8829 | typedef void DestructorSkippable_; |
| 8830 | ::xla::ComputationDataHandle* operand_; |
| 8831 | int new_element_type_; |
| 8832 | mutable int _cached_size_; |
| 8833 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8834 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsConvertRequestImpl(); |
| 8835 | }; |
| 8836 | // ------------------------------------------------------------------- |
| 8837 | |
| 8838 | class ConcatenateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConcatenateRequest) */ { |
| 8839 | public: |
| 8840 | ConcatenateRequest(); |
| 8841 | virtual ~ConcatenateRequest(); |
| 8842 | |
| 8843 | ConcatenateRequest(const ConcatenateRequest& from); |
| 8844 | |
| 8845 | inline ConcatenateRequest& operator=(const ConcatenateRequest& from) { |
| 8846 | CopyFrom(from); |
| 8847 | return *this; |
| 8848 | } |
| 8849 | #if LANG_CXX11 |
| 8850 | ConcatenateRequest(ConcatenateRequest&& from) noexcept |
| 8851 | : ConcatenateRequest() { |
| 8852 | *this = ::std::move(from); |
| 8853 | } |
| 8854 | |
| 8855 | inline ConcatenateRequest& operator=(ConcatenateRequest&& from) noexcept { |
| 8856 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8857 | if (this != &from) InternalSwap(&from); |
| 8858 | } else { |
| 8859 | CopyFrom(from); |
| 8860 | } |
| 8861 | return *this; |
| 8862 | } |
| 8863 | #endif |
| 8864 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8865 | return GetArenaNoVirtual(); |
| 8866 | } |
| 8867 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8868 | return MaybeArenaPtr(); |
| 8869 | } |
| 8870 | static const ::google::protobuf::Descriptor* descriptor(); |
| 8871 | static const ConcatenateRequest& default_instance(); |
| 8872 | |
| 8873 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 8874 | static inline const ConcatenateRequest* internal_default_instance() { |
| 8875 | return reinterpret_cast<const ConcatenateRequest*>( |
| 8876 | &_ConcatenateRequest_default_instance_); |
| 8877 | } |
| 8878 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 8879 | 53; |
| 8880 | |
| 8881 | void UnsafeArenaSwap(ConcatenateRequest* other); |
| 8882 | void Swap(ConcatenateRequest* other); |
| 8883 | friend void swap(ConcatenateRequest& a, ConcatenateRequest& b) { |
| 8884 | a.Swap(&b); |
| 8885 | } |
| 8886 | |
| 8887 | // implements Message ---------------------------------------------- |
| 8888 | |
| 8889 | inline ConcatenateRequest* New() const PROTOBUF_FINAL { |
| 8890 | return ::google::protobuf::Arena::CreateMessage<ConcatenateRequest>(NULL); |
| 8891 | } |
| 8892 | |
| 8893 | ConcatenateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 8894 | return ::google::protobuf::Arena::CreateMessage<ConcatenateRequest>(arena); |
| 8895 | } |
| 8896 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8897 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 8898 | void CopyFrom(const ConcatenateRequest& from); |
| 8899 | void MergeFrom(const ConcatenateRequest& from); |
| 8900 | void Clear() PROTOBUF_FINAL; |
| 8901 | bool IsInitialized() const PROTOBUF_FINAL; |
| 8902 | |
| 8903 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 8904 | bool MergePartialFromCodedStream( |
| 8905 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 8906 | void SerializeWithCachedSizes( |
| 8907 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 8908 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 8909 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 8910 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 8911 | private: |
| 8912 | void SharedCtor(); |
| 8913 | void SharedDtor(); |
| 8914 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 8915 | void InternalSwap(ConcatenateRequest* other); |
| 8916 | protected: |
| 8917 | explicit ConcatenateRequest(::google::protobuf::Arena* arena); |
| 8918 | private: |
| 8919 | static void ArenaDtor(void* object); |
| 8920 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 8921 | private: |
| 8922 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 8923 | return _internal_metadata_.arena(); |
| 8924 | } |
| 8925 | inline void* MaybeArenaPtr() const { |
| 8926 | return _internal_metadata_.raw_arena_ptr(); |
| 8927 | } |
| 8928 | public: |
| 8929 | |
| 8930 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 8931 | |
| 8932 | // nested types ---------------------------------------------------- |
| 8933 | |
| 8934 | // accessors ------------------------------------------------------- |
| 8935 | |
| 8936 | // repeated .xla.ComputationDataHandle operands = 2; |
| 8937 | int operands_size() const; |
| 8938 | void clear_operands(); |
| 8939 | static const int kOperandsFieldNumber = 2; |
| 8940 | ::xla::ComputationDataHandle* mutable_operands(int index); |
| 8941 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 8942 | mutable_operands(); |
| 8943 | const ::xla::ComputationDataHandle& operands(int index) const; |
| 8944 | ::xla::ComputationDataHandle* add_operands(); |
| 8945 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 8946 | operands() const; |
| 8947 | |
| 8948 | // int64 dimension = 3; |
| 8949 | void clear_dimension(); |
| 8950 | static const int kDimensionFieldNumber = 3; |
| 8951 | ::google::protobuf::int64 dimension() const; |
| 8952 | void set_dimension(::google::protobuf::int64 value); |
| 8953 | |
| 8954 | // @@protoc_insertion_point(class_scope:xla.ConcatenateRequest) |
| 8955 | private: |
| 8956 | |
| 8957 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 8958 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 8959 | typedef void InternalArenaConstructable_; |
| 8960 | typedef void DestructorSkippable_; |
| 8961 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > operands_; |
| 8962 | ::google::protobuf::int64 dimension_; |
| 8963 | mutable int _cached_size_; |
| 8964 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 8965 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsConcatenateRequestImpl(); |
| 8966 | }; |
| 8967 | // ------------------------------------------------------------------- |
| 8968 | |
| 8969 | class ConditionalRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConditionalRequest) */ { |
| 8970 | public: |
| 8971 | ConditionalRequest(); |
| 8972 | virtual ~ConditionalRequest(); |
| 8973 | |
| 8974 | ConditionalRequest(const ConditionalRequest& from); |
| 8975 | |
| 8976 | inline ConditionalRequest& operator=(const ConditionalRequest& from) { |
| 8977 | CopyFrom(from); |
| 8978 | return *this; |
| 8979 | } |
| 8980 | #if LANG_CXX11 |
| 8981 | ConditionalRequest(ConditionalRequest&& from) noexcept |
| 8982 | : ConditionalRequest() { |
| 8983 | *this = ::std::move(from); |
| 8984 | } |
| 8985 | |
| 8986 | inline ConditionalRequest& operator=(ConditionalRequest&& from) noexcept { |
| 8987 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 8988 | if (this != &from) InternalSwap(&from); |
| 8989 | } else { |
| 8990 | CopyFrom(from); |
| 8991 | } |
| 8992 | return *this; |
| 8993 | } |
| 8994 | #endif |
| 8995 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 8996 | return GetArenaNoVirtual(); |
| 8997 | } |
| 8998 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 8999 | return MaybeArenaPtr(); |
| 9000 | } |
| 9001 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9002 | static const ConditionalRequest& default_instance(); |
| 9003 | |
| 9004 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9005 | static inline const ConditionalRequest* internal_default_instance() { |
| 9006 | return reinterpret_cast<const ConditionalRequest*>( |
| 9007 | &_ConditionalRequest_default_instance_); |
| 9008 | } |
| 9009 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9010 | 54; |
| 9011 | |
| 9012 | void UnsafeArenaSwap(ConditionalRequest* other); |
| 9013 | void Swap(ConditionalRequest* other); |
| 9014 | friend void swap(ConditionalRequest& a, ConditionalRequest& b) { |
| 9015 | a.Swap(&b); |
| 9016 | } |
| 9017 | |
| 9018 | // implements Message ---------------------------------------------- |
| 9019 | |
| 9020 | inline ConditionalRequest* New() const PROTOBUF_FINAL { |
| 9021 | return ::google::protobuf::Arena::CreateMessage<ConditionalRequest>(NULL); |
| 9022 | } |
| 9023 | |
| 9024 | ConditionalRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9025 | return ::google::protobuf::Arena::CreateMessage<ConditionalRequest>(arena); |
| 9026 | } |
| 9027 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9028 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9029 | void CopyFrom(const ConditionalRequest& from); |
| 9030 | void MergeFrom(const ConditionalRequest& from); |
| 9031 | void Clear() PROTOBUF_FINAL; |
| 9032 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9033 | |
| 9034 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9035 | bool MergePartialFromCodedStream( |
| 9036 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9037 | void SerializeWithCachedSizes( |
| 9038 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9039 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9040 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9041 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9042 | private: |
| 9043 | void SharedCtor(); |
| 9044 | void SharedDtor(); |
| 9045 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9046 | void InternalSwap(ConditionalRequest* other); |
| 9047 | protected: |
| 9048 | explicit ConditionalRequest(::google::protobuf::Arena* arena); |
| 9049 | private: |
| 9050 | static void ArenaDtor(void* object); |
| 9051 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9052 | private: |
| 9053 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9054 | return _internal_metadata_.arena(); |
| 9055 | } |
| 9056 | inline void* MaybeArenaPtr() const { |
| 9057 | return _internal_metadata_.raw_arena_ptr(); |
| 9058 | } |
| 9059 | public: |
| 9060 | |
| 9061 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9062 | |
| 9063 | // nested types ---------------------------------------------------- |
| 9064 | |
| 9065 | // accessors ------------------------------------------------------- |
| 9066 | |
| 9067 | // .xla.ComputationDataHandle predicate = 2; |
| 9068 | bool has_predicate() const; |
| 9069 | void clear_predicate(); |
| 9070 | static const int kPredicateFieldNumber = 2; |
| 9071 | const ::xla::ComputationDataHandle& predicate() const; |
| 9072 | ::xla::ComputationDataHandle* release_predicate(); |
| 9073 | ::xla::ComputationDataHandle* mutable_predicate(); |
| 9074 | void set_allocated_predicate(::xla::ComputationDataHandle* predicate); |
| 9075 | void unsafe_arena_set_allocated_predicate( |
| 9076 | ::xla::ComputationDataHandle* predicate); |
| 9077 | ::xla::ComputationDataHandle* unsafe_arena_release_predicate(); |
| 9078 | |
| 9079 | // .xla.ComputationDataHandle true_operand = 3; |
| 9080 | bool has_true_operand() const; |
| 9081 | void clear_true_operand(); |
| 9082 | static const int kTrueOperandFieldNumber = 3; |
| 9083 | const ::xla::ComputationDataHandle& true_operand() const; |
| 9084 | ::xla::ComputationDataHandle* release_true_operand(); |
| 9085 | ::xla::ComputationDataHandle* mutable_true_operand(); |
| 9086 | void set_allocated_true_operand(::xla::ComputationDataHandle* true_operand); |
| 9087 | void unsafe_arena_set_allocated_true_operand( |
| 9088 | ::xla::ComputationDataHandle* true_operand); |
| 9089 | ::xla::ComputationDataHandle* unsafe_arena_release_true_operand(); |
| 9090 | |
| 9091 | // .xla.ComputationHandle true_computation = 4; |
| 9092 | bool has_true_computation() const; |
| 9093 | void clear_true_computation(); |
| 9094 | static const int kTrueComputationFieldNumber = 4; |
| 9095 | const ::xla::ComputationHandle& true_computation() const; |
| 9096 | ::xla::ComputationHandle* release_true_computation(); |
| 9097 | ::xla::ComputationHandle* mutable_true_computation(); |
| 9098 | void set_allocated_true_computation(::xla::ComputationHandle* true_computation); |
| 9099 | void unsafe_arena_set_allocated_true_computation( |
| 9100 | ::xla::ComputationHandle* true_computation); |
| 9101 | ::xla::ComputationHandle* unsafe_arena_release_true_computation(); |
| 9102 | |
| 9103 | // .xla.ComputationDataHandle false_operand = 5; |
| 9104 | bool has_false_operand() const; |
| 9105 | void clear_false_operand(); |
| 9106 | static const int kFalseOperandFieldNumber = 5; |
| 9107 | const ::xla::ComputationDataHandle& false_operand() const; |
| 9108 | ::xla::ComputationDataHandle* release_false_operand(); |
| 9109 | ::xla::ComputationDataHandle* mutable_false_operand(); |
| 9110 | void set_allocated_false_operand(::xla::ComputationDataHandle* false_operand); |
| 9111 | void unsafe_arena_set_allocated_false_operand( |
| 9112 | ::xla::ComputationDataHandle* false_operand); |
| 9113 | ::xla::ComputationDataHandle* unsafe_arena_release_false_operand(); |
| 9114 | |
| 9115 | // .xla.ComputationHandle false_computation = 6; |
| 9116 | bool has_false_computation() const; |
| 9117 | void clear_false_computation(); |
| 9118 | static const int kFalseComputationFieldNumber = 6; |
| 9119 | const ::xla::ComputationHandle& false_computation() const; |
| 9120 | ::xla::ComputationHandle* release_false_computation(); |
| 9121 | ::xla::ComputationHandle* mutable_false_computation(); |
| 9122 | void set_allocated_false_computation(::xla::ComputationHandle* false_computation); |
| 9123 | void unsafe_arena_set_allocated_false_computation( |
| 9124 | ::xla::ComputationHandle* false_computation); |
| 9125 | ::xla::ComputationHandle* unsafe_arena_release_false_computation(); |
| 9126 | |
| 9127 | // @@protoc_insertion_point(class_scope:xla.ConditionalRequest) |
| 9128 | private: |
| 9129 | |
| 9130 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 9131 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 9132 | typedef void InternalArenaConstructable_; |
| 9133 | typedef void DestructorSkippable_; |
| 9134 | ::xla::ComputationDataHandle* predicate_; |
| 9135 | ::xla::ComputationDataHandle* true_operand_; |
| 9136 | ::xla::ComputationHandle* true_computation_; |
| 9137 | ::xla::ComputationDataHandle* false_operand_; |
| 9138 | ::xla::ComputationHandle* false_computation_; |
| 9139 | mutable int _cached_size_; |
| 9140 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 9141 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsConditionalRequestImpl(); |
| 9142 | }; |
| 9143 | // ------------------------------------------------------------------- |
| 9144 | |
| 9145 | class WhileRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.WhileRequest) */ { |
| 9146 | public: |
| 9147 | WhileRequest(); |
| 9148 | virtual ~WhileRequest(); |
| 9149 | |
| 9150 | WhileRequest(const WhileRequest& from); |
| 9151 | |
| 9152 | inline WhileRequest& operator=(const WhileRequest& from) { |
| 9153 | CopyFrom(from); |
| 9154 | return *this; |
| 9155 | } |
| 9156 | #if LANG_CXX11 |
| 9157 | WhileRequest(WhileRequest&& from) noexcept |
| 9158 | : WhileRequest() { |
| 9159 | *this = ::std::move(from); |
| 9160 | } |
| 9161 | |
| 9162 | inline WhileRequest& operator=(WhileRequest&& from) noexcept { |
| 9163 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 9164 | if (this != &from) InternalSwap(&from); |
| 9165 | } else { |
| 9166 | CopyFrom(from); |
| 9167 | } |
| 9168 | return *this; |
| 9169 | } |
| 9170 | #endif |
| 9171 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 9172 | return GetArenaNoVirtual(); |
| 9173 | } |
| 9174 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 9175 | return MaybeArenaPtr(); |
| 9176 | } |
| 9177 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9178 | static const WhileRequest& default_instance(); |
| 9179 | |
| 9180 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9181 | static inline const WhileRequest* internal_default_instance() { |
| 9182 | return reinterpret_cast<const WhileRequest*>( |
| 9183 | &_WhileRequest_default_instance_); |
| 9184 | } |
| 9185 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9186 | 55; |
| 9187 | |
| 9188 | void UnsafeArenaSwap(WhileRequest* other); |
| 9189 | void Swap(WhileRequest* other); |
| 9190 | friend void swap(WhileRequest& a, WhileRequest& b) { |
| 9191 | a.Swap(&b); |
| 9192 | } |
| 9193 | |
| 9194 | // implements Message ---------------------------------------------- |
| 9195 | |
| 9196 | inline WhileRequest* New() const PROTOBUF_FINAL { |
| 9197 | return ::google::protobuf::Arena::CreateMessage<WhileRequest>(NULL); |
| 9198 | } |
| 9199 | |
| 9200 | WhileRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9201 | return ::google::protobuf::Arena::CreateMessage<WhileRequest>(arena); |
| 9202 | } |
| 9203 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9204 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9205 | void CopyFrom(const WhileRequest& from); |
| 9206 | void MergeFrom(const WhileRequest& from); |
| 9207 | void Clear() PROTOBUF_FINAL; |
| 9208 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9209 | |
| 9210 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9211 | bool MergePartialFromCodedStream( |
| 9212 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9213 | void SerializeWithCachedSizes( |
| 9214 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9215 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9216 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9217 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9218 | private: |
| 9219 | void SharedCtor(); |
| 9220 | void SharedDtor(); |
| 9221 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9222 | void InternalSwap(WhileRequest* other); |
| 9223 | protected: |
| 9224 | explicit WhileRequest(::google::protobuf::Arena* arena); |
| 9225 | private: |
| 9226 | static void ArenaDtor(void* object); |
| 9227 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9228 | private: |
| 9229 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9230 | return _internal_metadata_.arena(); |
| 9231 | } |
| 9232 | inline void* MaybeArenaPtr() const { |
| 9233 | return _internal_metadata_.raw_arena_ptr(); |
| 9234 | } |
| 9235 | public: |
| 9236 | |
| 9237 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9238 | |
| 9239 | // nested types ---------------------------------------------------- |
| 9240 | |
| 9241 | // accessors ------------------------------------------------------- |
| 9242 | |
| 9243 | // .xla.ComputationHandle condition = 2; |
| 9244 | bool has_condition() const; |
| 9245 | void clear_condition(); |
| 9246 | static const int kConditionFieldNumber = 2; |
| 9247 | const ::xla::ComputationHandle& condition() const; |
| 9248 | ::xla::ComputationHandle* release_condition(); |
| 9249 | ::xla::ComputationHandle* mutable_condition(); |
| 9250 | void set_allocated_condition(::xla::ComputationHandle* condition); |
| 9251 | void unsafe_arena_set_allocated_condition( |
| 9252 | ::xla::ComputationHandle* condition); |
| 9253 | ::xla::ComputationHandle* unsafe_arena_release_condition(); |
| 9254 | |
| 9255 | // .xla.ComputationHandle body = 3; |
| 9256 | bool has_body() const; |
| 9257 | void clear_body(); |
| 9258 | static const int kBodyFieldNumber = 3; |
| 9259 | const ::xla::ComputationHandle& body() const; |
| 9260 | ::xla::ComputationHandle* release_body(); |
| 9261 | ::xla::ComputationHandle* mutable_body(); |
| 9262 | void set_allocated_body(::xla::ComputationHandle* body); |
| 9263 | void unsafe_arena_set_allocated_body( |
| 9264 | ::xla::ComputationHandle* body); |
| 9265 | ::xla::ComputationHandle* unsafe_arena_release_body(); |
| 9266 | |
| 9267 | // .xla.ComputationDataHandle init = 4; |
| 9268 | bool has_init() const; |
| 9269 | void clear_init(); |
| 9270 | static const int kInitFieldNumber = 4; |
| 9271 | const ::xla::ComputationDataHandle& init() const; |
| 9272 | ::xla::ComputationDataHandle* release_init(); |
| 9273 | ::xla::ComputationDataHandle* mutable_init(); |
| 9274 | void set_allocated_init(::xla::ComputationDataHandle* init); |
| 9275 | void unsafe_arena_set_allocated_init( |
| 9276 | ::xla::ComputationDataHandle* init); |
| 9277 | ::xla::ComputationDataHandle* unsafe_arena_release_init(); |
| 9278 | |
| 9279 | // @@protoc_insertion_point(class_scope:xla.WhileRequest) |
| 9280 | private: |
| 9281 | |
| 9282 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 9283 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 9284 | typedef void InternalArenaConstructable_; |
| 9285 | typedef void DestructorSkippable_; |
| 9286 | ::xla::ComputationHandle* condition_; |
| 9287 | ::xla::ComputationHandle* body_; |
| 9288 | ::xla::ComputationDataHandle* init_; |
| 9289 | mutable int _cached_size_; |
| 9290 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 9291 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsWhileRequestImpl(); |
| 9292 | }; |
| 9293 | // ------------------------------------------------------------------- |
| 9294 | |
| 9295 | class UnaryOpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.UnaryOpRequest) */ { |
| 9296 | public: |
| 9297 | UnaryOpRequest(); |
| 9298 | virtual ~UnaryOpRequest(); |
| 9299 | |
| 9300 | UnaryOpRequest(const UnaryOpRequest& from); |
| 9301 | |
| 9302 | inline UnaryOpRequest& operator=(const UnaryOpRequest& from) { |
| 9303 | CopyFrom(from); |
| 9304 | return *this; |
| 9305 | } |
| 9306 | #if LANG_CXX11 |
| 9307 | UnaryOpRequest(UnaryOpRequest&& from) noexcept |
| 9308 | : UnaryOpRequest() { |
| 9309 | *this = ::std::move(from); |
| 9310 | } |
| 9311 | |
| 9312 | inline UnaryOpRequest& operator=(UnaryOpRequest&& from) noexcept { |
| 9313 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 9314 | if (this != &from) InternalSwap(&from); |
| 9315 | } else { |
| 9316 | CopyFrom(from); |
| 9317 | } |
| 9318 | return *this; |
| 9319 | } |
| 9320 | #endif |
| 9321 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 9322 | return GetArenaNoVirtual(); |
| 9323 | } |
| 9324 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 9325 | return MaybeArenaPtr(); |
| 9326 | } |
| 9327 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9328 | static const UnaryOpRequest& default_instance(); |
| 9329 | |
| 9330 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9331 | static inline const UnaryOpRequest* internal_default_instance() { |
| 9332 | return reinterpret_cast<const UnaryOpRequest*>( |
| 9333 | &_UnaryOpRequest_default_instance_); |
| 9334 | } |
| 9335 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9336 | 56; |
| 9337 | |
| 9338 | void UnsafeArenaSwap(UnaryOpRequest* other); |
| 9339 | void Swap(UnaryOpRequest* other); |
| 9340 | friend void swap(UnaryOpRequest& a, UnaryOpRequest& b) { |
| 9341 | a.Swap(&b); |
| 9342 | } |
| 9343 | |
| 9344 | // implements Message ---------------------------------------------- |
| 9345 | |
| 9346 | inline UnaryOpRequest* New() const PROTOBUF_FINAL { |
| 9347 | return ::google::protobuf::Arena::CreateMessage<UnaryOpRequest>(NULL); |
| 9348 | } |
| 9349 | |
| 9350 | UnaryOpRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9351 | return ::google::protobuf::Arena::CreateMessage<UnaryOpRequest>(arena); |
| 9352 | } |
| 9353 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9354 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9355 | void CopyFrom(const UnaryOpRequest& from); |
| 9356 | void MergeFrom(const UnaryOpRequest& from); |
| 9357 | void Clear() PROTOBUF_FINAL; |
| 9358 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9359 | |
| 9360 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9361 | bool MergePartialFromCodedStream( |
| 9362 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9363 | void SerializeWithCachedSizes( |
| 9364 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9365 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9366 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9367 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9368 | private: |
| 9369 | void SharedCtor(); |
| 9370 | void SharedDtor(); |
| 9371 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9372 | void InternalSwap(UnaryOpRequest* other); |
| 9373 | protected: |
| 9374 | explicit UnaryOpRequest(::google::protobuf::Arena* arena); |
| 9375 | private: |
| 9376 | static void ArenaDtor(void* object); |
| 9377 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9378 | private: |
| 9379 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9380 | return _internal_metadata_.arena(); |
| 9381 | } |
| 9382 | inline void* MaybeArenaPtr() const { |
| 9383 | return _internal_metadata_.raw_arena_ptr(); |
| 9384 | } |
| 9385 | public: |
| 9386 | |
| 9387 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9388 | |
| 9389 | // nested types ---------------------------------------------------- |
| 9390 | |
| 9391 | // accessors ------------------------------------------------------- |
| 9392 | |
| 9393 | // .xla.ComputationDataHandle operand = 3; |
| 9394 | bool has_operand() const; |
| 9395 | void clear_operand(); |
| 9396 | static const int kOperandFieldNumber = 3; |
| 9397 | const ::xla::ComputationDataHandle& operand() const; |
| 9398 | ::xla::ComputationDataHandle* release_operand(); |
| 9399 | ::xla::ComputationDataHandle* mutable_operand(); |
| 9400 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 9401 | void unsafe_arena_set_allocated_operand( |
| 9402 | ::xla::ComputationDataHandle* operand); |
| 9403 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 9404 | |
| 9405 | // .xla.UnaryOperation unop = 2; |
| 9406 | void clear_unop(); |
| 9407 | static const int kUnopFieldNumber = 2; |
| 9408 | ::xla::UnaryOperation unop() const; |
| 9409 | void set_unop(::xla::UnaryOperation value); |
| 9410 | |
| 9411 | // @@protoc_insertion_point(class_scope:xla.UnaryOpRequest) |
| 9412 | private: |
| 9413 | |
| 9414 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 9415 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 9416 | typedef void InternalArenaConstructable_; |
| 9417 | typedef void DestructorSkippable_; |
| 9418 | ::xla::ComputationDataHandle* operand_; |
| 9419 | int unop_; |
| 9420 | mutable int _cached_size_; |
| 9421 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 9422 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsUnaryOpRequestImpl(); |
| 9423 | }; |
| 9424 | // ------------------------------------------------------------------- |
| 9425 | |
| 9426 | class BinaryOpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BinaryOpRequest) */ { |
| 9427 | public: |
| 9428 | BinaryOpRequest(); |
| 9429 | virtual ~BinaryOpRequest(); |
| 9430 | |
| 9431 | BinaryOpRequest(const BinaryOpRequest& from); |
| 9432 | |
| 9433 | inline BinaryOpRequest& operator=(const BinaryOpRequest& from) { |
| 9434 | CopyFrom(from); |
| 9435 | return *this; |
| 9436 | } |
| 9437 | #if LANG_CXX11 |
| 9438 | BinaryOpRequest(BinaryOpRequest&& from) noexcept |
| 9439 | : BinaryOpRequest() { |
| 9440 | *this = ::std::move(from); |
| 9441 | } |
| 9442 | |
| 9443 | inline BinaryOpRequest& operator=(BinaryOpRequest&& from) noexcept { |
| 9444 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 9445 | if (this != &from) InternalSwap(&from); |
| 9446 | } else { |
| 9447 | CopyFrom(from); |
| 9448 | } |
| 9449 | return *this; |
| 9450 | } |
| 9451 | #endif |
| 9452 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 9453 | return GetArenaNoVirtual(); |
| 9454 | } |
| 9455 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 9456 | return MaybeArenaPtr(); |
| 9457 | } |
| 9458 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9459 | static const BinaryOpRequest& default_instance(); |
| 9460 | |
| 9461 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9462 | static inline const BinaryOpRequest* internal_default_instance() { |
| 9463 | return reinterpret_cast<const BinaryOpRequest*>( |
| 9464 | &_BinaryOpRequest_default_instance_); |
| 9465 | } |
| 9466 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9467 | 57; |
| 9468 | |
| 9469 | void UnsafeArenaSwap(BinaryOpRequest* other); |
| 9470 | void Swap(BinaryOpRequest* other); |
| 9471 | friend void swap(BinaryOpRequest& a, BinaryOpRequest& b) { |
| 9472 | a.Swap(&b); |
| 9473 | } |
| 9474 | |
| 9475 | // implements Message ---------------------------------------------- |
| 9476 | |
| 9477 | inline BinaryOpRequest* New() const PROTOBUF_FINAL { |
| 9478 | return ::google::protobuf::Arena::CreateMessage<BinaryOpRequest>(NULL); |
| 9479 | } |
| 9480 | |
| 9481 | BinaryOpRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9482 | return ::google::protobuf::Arena::CreateMessage<BinaryOpRequest>(arena); |
| 9483 | } |
| 9484 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9485 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9486 | void CopyFrom(const BinaryOpRequest& from); |
| 9487 | void MergeFrom(const BinaryOpRequest& from); |
| 9488 | void Clear() PROTOBUF_FINAL; |
| 9489 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9490 | |
| 9491 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9492 | bool MergePartialFromCodedStream( |
| 9493 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9494 | void SerializeWithCachedSizes( |
| 9495 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9496 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9497 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9498 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9499 | private: |
| 9500 | void SharedCtor(); |
| 9501 | void SharedDtor(); |
| 9502 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9503 | void InternalSwap(BinaryOpRequest* other); |
| 9504 | protected: |
| 9505 | explicit BinaryOpRequest(::google::protobuf::Arena* arena); |
| 9506 | private: |
| 9507 | static void ArenaDtor(void* object); |
| 9508 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9509 | private: |
| 9510 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9511 | return _internal_metadata_.arena(); |
| 9512 | } |
| 9513 | inline void* MaybeArenaPtr() const { |
| 9514 | return _internal_metadata_.raw_arena_ptr(); |
| 9515 | } |
| 9516 | public: |
| 9517 | |
| 9518 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9519 | |
| 9520 | // nested types ---------------------------------------------------- |
| 9521 | |
| 9522 | // accessors ------------------------------------------------------- |
| 9523 | |
| 9524 | // repeated int64 broadcast_dimensions = 5; |
| 9525 | int broadcast_dimensions_size() const; |
| 9526 | void clear_broadcast_dimensions(); |
| 9527 | static const int kBroadcastDimensionsFieldNumber = 5; |
| 9528 | ::google::protobuf::int64 broadcast_dimensions(int index) const; |
| 9529 | void set_broadcast_dimensions(int index, ::google::protobuf::int64 value); |
| 9530 | void add_broadcast_dimensions(::google::protobuf::int64 value); |
| 9531 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 9532 | broadcast_dimensions() const; |
| 9533 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 9534 | mutable_broadcast_dimensions(); |
| 9535 | |
| 9536 | // .xla.ComputationDataHandle lhs = 3; |
| 9537 | bool has_lhs() const; |
| 9538 | void clear_lhs(); |
| 9539 | static const int kLhsFieldNumber = 3; |
| 9540 | const ::xla::ComputationDataHandle& lhs() const; |
| 9541 | ::xla::ComputationDataHandle* release_lhs(); |
| 9542 | ::xla::ComputationDataHandle* mutable_lhs(); |
| 9543 | void set_allocated_lhs(::xla::ComputationDataHandle* lhs); |
| 9544 | void unsafe_arena_set_allocated_lhs( |
| 9545 | ::xla::ComputationDataHandle* lhs); |
| 9546 | ::xla::ComputationDataHandle* unsafe_arena_release_lhs(); |
| 9547 | |
| 9548 | // .xla.ComputationDataHandle rhs = 4; |
| 9549 | bool has_rhs() const; |
| 9550 | void clear_rhs(); |
| 9551 | static const int kRhsFieldNumber = 4; |
| 9552 | const ::xla::ComputationDataHandle& rhs() const; |
| 9553 | ::xla::ComputationDataHandle* release_rhs(); |
| 9554 | ::xla::ComputationDataHandle* mutable_rhs(); |
| 9555 | void set_allocated_rhs(::xla::ComputationDataHandle* rhs); |
| 9556 | void unsafe_arena_set_allocated_rhs( |
| 9557 | ::xla::ComputationDataHandle* rhs); |
| 9558 | ::xla::ComputationDataHandle* unsafe_arena_release_rhs(); |
| 9559 | |
| 9560 | // .xla.BinaryOperation binop = 2; |
| 9561 | void clear_binop(); |
| 9562 | static const int kBinopFieldNumber = 2; |
| 9563 | ::xla::BinaryOperation binop() const; |
| 9564 | void set_binop(::xla::BinaryOperation value); |
| 9565 | |
| 9566 | // @@protoc_insertion_point(class_scope:xla.BinaryOpRequest) |
| 9567 | private: |
| 9568 | |
| 9569 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 9570 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 9571 | typedef void InternalArenaConstructable_; |
| 9572 | typedef void DestructorSkippable_; |
| 9573 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > broadcast_dimensions_; |
| 9574 | mutable int _broadcast_dimensions_cached_byte_size_; |
| 9575 | ::xla::ComputationDataHandle* lhs_; |
| 9576 | ::xla::ComputationDataHandle* rhs_; |
| 9577 | int binop_; |
| 9578 | mutable int _cached_size_; |
| 9579 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 9580 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsBinaryOpRequestImpl(); |
| 9581 | }; |
| 9582 | // ------------------------------------------------------------------- |
| 9583 | |
| 9584 | class RngRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.RngRequest) */ { |
| 9585 | public: |
| 9586 | RngRequest(); |
| 9587 | virtual ~RngRequest(); |
| 9588 | |
| 9589 | RngRequest(const RngRequest& from); |
| 9590 | |
| 9591 | inline RngRequest& operator=(const RngRequest& from) { |
| 9592 | CopyFrom(from); |
| 9593 | return *this; |
| 9594 | } |
| 9595 | #if LANG_CXX11 |
| 9596 | RngRequest(RngRequest&& from) noexcept |
| 9597 | : RngRequest() { |
| 9598 | *this = ::std::move(from); |
| 9599 | } |
| 9600 | |
| 9601 | inline RngRequest& operator=(RngRequest&& from) noexcept { |
| 9602 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 9603 | if (this != &from) InternalSwap(&from); |
| 9604 | } else { |
| 9605 | CopyFrom(from); |
| 9606 | } |
| 9607 | return *this; |
| 9608 | } |
| 9609 | #endif |
| 9610 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 9611 | return GetArenaNoVirtual(); |
| 9612 | } |
| 9613 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 9614 | return MaybeArenaPtr(); |
| 9615 | } |
| 9616 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9617 | static const RngRequest& default_instance(); |
| 9618 | |
| 9619 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9620 | static inline const RngRequest* internal_default_instance() { |
| 9621 | return reinterpret_cast<const RngRequest*>( |
| 9622 | &_RngRequest_default_instance_); |
| 9623 | } |
| 9624 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9625 | 58; |
| 9626 | |
| 9627 | void UnsafeArenaSwap(RngRequest* other); |
| 9628 | void Swap(RngRequest* other); |
| 9629 | friend void swap(RngRequest& a, RngRequest& b) { |
| 9630 | a.Swap(&b); |
| 9631 | } |
| 9632 | |
| 9633 | // implements Message ---------------------------------------------- |
| 9634 | |
| 9635 | inline RngRequest* New() const PROTOBUF_FINAL { |
| 9636 | return ::google::protobuf::Arena::CreateMessage<RngRequest>(NULL); |
| 9637 | } |
| 9638 | |
| 9639 | RngRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9640 | return ::google::protobuf::Arena::CreateMessage<RngRequest>(arena); |
| 9641 | } |
| 9642 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9643 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9644 | void CopyFrom(const RngRequest& from); |
| 9645 | void MergeFrom(const RngRequest& from); |
| 9646 | void Clear() PROTOBUF_FINAL; |
| 9647 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9648 | |
| 9649 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9650 | bool MergePartialFromCodedStream( |
| 9651 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9652 | void SerializeWithCachedSizes( |
| 9653 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9654 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9655 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9656 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9657 | private: |
| 9658 | void SharedCtor(); |
| 9659 | void SharedDtor(); |
| 9660 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9661 | void InternalSwap(RngRequest* other); |
| 9662 | protected: |
| 9663 | explicit RngRequest(::google::protobuf::Arena* arena); |
| 9664 | private: |
| 9665 | static void ArenaDtor(void* object); |
| 9666 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9667 | private: |
| 9668 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9669 | return _internal_metadata_.arena(); |
| 9670 | } |
| 9671 | inline void* MaybeArenaPtr() const { |
| 9672 | return _internal_metadata_.raw_arena_ptr(); |
| 9673 | } |
| 9674 | public: |
| 9675 | |
| 9676 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9677 | |
| 9678 | // nested types ---------------------------------------------------- |
| 9679 | |
| 9680 | // accessors ------------------------------------------------------- |
| 9681 | |
| 9682 | // repeated .xla.ComputationDataHandle parameter = 3; |
| 9683 | int parameter_size() const; |
| 9684 | void clear_parameter(); |
| 9685 | static const int kParameterFieldNumber = 3; |
| 9686 | ::xla::ComputationDataHandle* mutable_parameter(int index); |
| 9687 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 9688 | mutable_parameter(); |
| 9689 | const ::xla::ComputationDataHandle& parameter(int index) const; |
| 9690 | ::xla::ComputationDataHandle* add_parameter(); |
| 9691 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 9692 | parameter() const; |
| 9693 | |
| 9694 | // .xla.Shape shape = 4; |
| 9695 | bool has_shape() const; |
| 9696 | void clear_shape(); |
| 9697 | static const int kShapeFieldNumber = 4; |
| 9698 | const ::xla::Shape& shape() const; |
| 9699 | ::xla::Shape* release_shape(); |
| 9700 | ::xla::Shape* mutable_shape(); |
| 9701 | void set_allocated_shape(::xla::Shape* shape); |
| 9702 | void unsafe_arena_set_allocated_shape( |
| 9703 | ::xla::Shape* shape); |
| 9704 | ::xla::Shape* unsafe_arena_release_shape(); |
| 9705 | |
| 9706 | // .xla.RandomDistribution distribution = 2; |
| 9707 | void clear_distribution(); |
| 9708 | static const int kDistributionFieldNumber = 2; |
| 9709 | ::xla::RandomDistribution distribution() const; |
| 9710 | void set_distribution(::xla::RandomDistribution value); |
| 9711 | |
| 9712 | // @@protoc_insertion_point(class_scope:xla.RngRequest) |
| 9713 | private: |
| 9714 | |
| 9715 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 9716 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 9717 | typedef void InternalArenaConstructable_; |
| 9718 | typedef void DestructorSkippable_; |
| 9719 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > parameter_; |
| 9720 | ::xla::Shape* shape_; |
| 9721 | int distribution_; |
| 9722 | mutable int _cached_size_; |
| 9723 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 9724 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsRngRequestImpl(); |
| 9725 | }; |
| 9726 | // ------------------------------------------------------------------- |
| 9727 | |
| 9728 | class TernaryOpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TernaryOpRequest) */ { |
| 9729 | public: |
| 9730 | TernaryOpRequest(); |
| 9731 | virtual ~TernaryOpRequest(); |
| 9732 | |
| 9733 | TernaryOpRequest(const TernaryOpRequest& from); |
| 9734 | |
| 9735 | inline TernaryOpRequest& operator=(const TernaryOpRequest& from) { |
| 9736 | CopyFrom(from); |
| 9737 | return *this; |
| 9738 | } |
| 9739 | #if LANG_CXX11 |
| 9740 | TernaryOpRequest(TernaryOpRequest&& from) noexcept |
| 9741 | : TernaryOpRequest() { |
| 9742 | *this = ::std::move(from); |
| 9743 | } |
| 9744 | |
| 9745 | inline TernaryOpRequest& operator=(TernaryOpRequest&& from) noexcept { |
| 9746 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 9747 | if (this != &from) InternalSwap(&from); |
| 9748 | } else { |
| 9749 | CopyFrom(from); |
| 9750 | } |
| 9751 | return *this; |
| 9752 | } |
| 9753 | #endif |
| 9754 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 9755 | return GetArenaNoVirtual(); |
| 9756 | } |
| 9757 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 9758 | return MaybeArenaPtr(); |
| 9759 | } |
| 9760 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9761 | static const TernaryOpRequest& default_instance(); |
| 9762 | |
| 9763 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9764 | static inline const TernaryOpRequest* internal_default_instance() { |
| 9765 | return reinterpret_cast<const TernaryOpRequest*>( |
| 9766 | &_TernaryOpRequest_default_instance_); |
| 9767 | } |
| 9768 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9769 | 59; |
| 9770 | |
| 9771 | void UnsafeArenaSwap(TernaryOpRequest* other); |
| 9772 | void Swap(TernaryOpRequest* other); |
| 9773 | friend void swap(TernaryOpRequest& a, TernaryOpRequest& b) { |
| 9774 | a.Swap(&b); |
| 9775 | } |
| 9776 | |
| 9777 | // implements Message ---------------------------------------------- |
| 9778 | |
| 9779 | inline TernaryOpRequest* New() const PROTOBUF_FINAL { |
| 9780 | return ::google::protobuf::Arena::CreateMessage<TernaryOpRequest>(NULL); |
| 9781 | } |
| 9782 | |
| 9783 | TernaryOpRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9784 | return ::google::protobuf::Arena::CreateMessage<TernaryOpRequest>(arena); |
| 9785 | } |
| 9786 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9787 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9788 | void CopyFrom(const TernaryOpRequest& from); |
| 9789 | void MergeFrom(const TernaryOpRequest& from); |
| 9790 | void Clear() PROTOBUF_FINAL; |
| 9791 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9792 | |
| 9793 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9794 | bool MergePartialFromCodedStream( |
| 9795 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9796 | void SerializeWithCachedSizes( |
| 9797 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9798 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9799 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9800 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9801 | private: |
| 9802 | void SharedCtor(); |
| 9803 | void SharedDtor(); |
| 9804 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9805 | void InternalSwap(TernaryOpRequest* other); |
| 9806 | protected: |
| 9807 | explicit TernaryOpRequest(::google::protobuf::Arena* arena); |
| 9808 | private: |
| 9809 | static void ArenaDtor(void* object); |
| 9810 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9811 | private: |
| 9812 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9813 | return _internal_metadata_.arena(); |
| 9814 | } |
| 9815 | inline void* MaybeArenaPtr() const { |
| 9816 | return _internal_metadata_.raw_arena_ptr(); |
| 9817 | } |
| 9818 | public: |
| 9819 | |
| 9820 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9821 | |
| 9822 | // nested types ---------------------------------------------------- |
| 9823 | |
| 9824 | // accessors ------------------------------------------------------- |
| 9825 | |
| 9826 | // .xla.ComputationDataHandle lhs = 3; |
| 9827 | bool has_lhs() const; |
| 9828 | void clear_lhs(); |
| 9829 | static const int kLhsFieldNumber = 3; |
| 9830 | const ::xla::ComputationDataHandle& lhs() const; |
| 9831 | ::xla::ComputationDataHandle* release_lhs(); |
| 9832 | ::xla::ComputationDataHandle* mutable_lhs(); |
| 9833 | void set_allocated_lhs(::xla::ComputationDataHandle* lhs); |
| 9834 | void unsafe_arena_set_allocated_lhs( |
| 9835 | ::xla::ComputationDataHandle* lhs); |
| 9836 | ::xla::ComputationDataHandle* unsafe_arena_release_lhs(); |
| 9837 | |
| 9838 | // .xla.ComputationDataHandle rhs = 4; |
| 9839 | bool has_rhs() const; |
| 9840 | void clear_rhs(); |
| 9841 | static const int kRhsFieldNumber = 4; |
| 9842 | const ::xla::ComputationDataHandle& rhs() const; |
| 9843 | ::xla::ComputationDataHandle* release_rhs(); |
| 9844 | ::xla::ComputationDataHandle* mutable_rhs(); |
| 9845 | void set_allocated_rhs(::xla::ComputationDataHandle* rhs); |
| 9846 | void unsafe_arena_set_allocated_rhs( |
| 9847 | ::xla::ComputationDataHandle* rhs); |
| 9848 | ::xla::ComputationDataHandle* unsafe_arena_release_rhs(); |
| 9849 | |
| 9850 | // .xla.ComputationDataHandle ehs = 5; |
| 9851 | bool has_ehs() const; |
| 9852 | void clear_ehs(); |
| 9853 | static const int kEhsFieldNumber = 5; |
| 9854 | const ::xla::ComputationDataHandle& ehs() const; |
| 9855 | ::xla::ComputationDataHandle* release_ehs(); |
| 9856 | ::xla::ComputationDataHandle* mutable_ehs(); |
| 9857 | void set_allocated_ehs(::xla::ComputationDataHandle* ehs); |
| 9858 | void unsafe_arena_set_allocated_ehs( |
| 9859 | ::xla::ComputationDataHandle* ehs); |
| 9860 | ::xla::ComputationDataHandle* unsafe_arena_release_ehs(); |
| 9861 | |
| 9862 | // .xla.TernaryOperation triop = 2; |
| 9863 | void clear_triop(); |
| 9864 | static const int kTriopFieldNumber = 2; |
| 9865 | ::xla::TernaryOperation triop() const; |
| 9866 | void set_triop(::xla::TernaryOperation value); |
| 9867 | |
| 9868 | // @@protoc_insertion_point(class_scope:xla.TernaryOpRequest) |
| 9869 | private: |
| 9870 | |
| 9871 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 9872 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 9873 | typedef void InternalArenaConstructable_; |
| 9874 | typedef void DestructorSkippable_; |
| 9875 | ::xla::ComputationDataHandle* lhs_; |
| 9876 | ::xla::ComputationDataHandle* rhs_; |
| 9877 | ::xla::ComputationDataHandle* ehs_; |
| 9878 | int triop_; |
| 9879 | mutable int _cached_size_; |
| 9880 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 9881 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsTernaryOpRequestImpl(); |
| 9882 | }; |
| 9883 | // ------------------------------------------------------------------- |
| 9884 | |
| 9885 | class VariadicOpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.VariadicOpRequest) */ { |
| 9886 | public: |
| 9887 | VariadicOpRequest(); |
| 9888 | virtual ~VariadicOpRequest(); |
| 9889 | |
| 9890 | VariadicOpRequest(const VariadicOpRequest& from); |
| 9891 | |
| 9892 | inline VariadicOpRequest& operator=(const VariadicOpRequest& from) { |
| 9893 | CopyFrom(from); |
| 9894 | return *this; |
| 9895 | } |
| 9896 | #if LANG_CXX11 |
| 9897 | VariadicOpRequest(VariadicOpRequest&& from) noexcept |
| 9898 | : VariadicOpRequest() { |
| 9899 | *this = ::std::move(from); |
| 9900 | } |
| 9901 | |
| 9902 | inline VariadicOpRequest& operator=(VariadicOpRequest&& from) noexcept { |
| 9903 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 9904 | if (this != &from) InternalSwap(&from); |
| 9905 | } else { |
| 9906 | CopyFrom(from); |
| 9907 | } |
| 9908 | return *this; |
| 9909 | } |
| 9910 | #endif |
| 9911 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 9912 | return GetArenaNoVirtual(); |
| 9913 | } |
| 9914 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 9915 | return MaybeArenaPtr(); |
| 9916 | } |
| 9917 | static const ::google::protobuf::Descriptor* descriptor(); |
| 9918 | static const VariadicOpRequest& default_instance(); |
| 9919 | |
| 9920 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 9921 | static inline const VariadicOpRequest* internal_default_instance() { |
| 9922 | return reinterpret_cast<const VariadicOpRequest*>( |
| 9923 | &_VariadicOpRequest_default_instance_); |
| 9924 | } |
| 9925 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 9926 | 60; |
| 9927 | |
| 9928 | void UnsafeArenaSwap(VariadicOpRequest* other); |
| 9929 | void Swap(VariadicOpRequest* other); |
| 9930 | friend void swap(VariadicOpRequest& a, VariadicOpRequest& b) { |
| 9931 | a.Swap(&b); |
| 9932 | } |
| 9933 | |
| 9934 | // implements Message ---------------------------------------------- |
| 9935 | |
| 9936 | inline VariadicOpRequest* New() const PROTOBUF_FINAL { |
| 9937 | return ::google::protobuf::Arena::CreateMessage<VariadicOpRequest>(NULL); |
| 9938 | } |
| 9939 | |
| 9940 | VariadicOpRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 9941 | return ::google::protobuf::Arena::CreateMessage<VariadicOpRequest>(arena); |
| 9942 | } |
| 9943 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9944 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 9945 | void CopyFrom(const VariadicOpRequest& from); |
| 9946 | void MergeFrom(const VariadicOpRequest& from); |
| 9947 | void Clear() PROTOBUF_FINAL; |
| 9948 | bool IsInitialized() const PROTOBUF_FINAL; |
| 9949 | |
| 9950 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 9951 | bool MergePartialFromCodedStream( |
| 9952 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 9953 | void SerializeWithCachedSizes( |
| 9954 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 9955 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 9956 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 9957 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 9958 | private: |
| 9959 | void SharedCtor(); |
| 9960 | void SharedDtor(); |
| 9961 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 9962 | void InternalSwap(VariadicOpRequest* other); |
| 9963 | protected: |
| 9964 | explicit VariadicOpRequest(::google::protobuf::Arena* arena); |
| 9965 | private: |
| 9966 | static void ArenaDtor(void* object); |
| 9967 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 9968 | private: |
| 9969 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 9970 | return _internal_metadata_.arena(); |
| 9971 | } |
| 9972 | inline void* MaybeArenaPtr() const { |
| 9973 | return _internal_metadata_.raw_arena_ptr(); |
| 9974 | } |
| 9975 | public: |
| 9976 | |
| 9977 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 9978 | |
| 9979 | // nested types ---------------------------------------------------- |
| 9980 | |
| 9981 | // accessors ------------------------------------------------------- |
| 9982 | |
| 9983 | // repeated .xla.ComputationDataHandle operands = 3; |
| 9984 | int operands_size() const; |
| 9985 | void clear_operands(); |
| 9986 | static const int kOperandsFieldNumber = 3; |
| 9987 | ::xla::ComputationDataHandle* mutable_operands(int index); |
| 9988 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 9989 | mutable_operands(); |
| 9990 | const ::xla::ComputationDataHandle& operands(int index) const; |
| 9991 | ::xla::ComputationDataHandle* add_operands(); |
| 9992 | const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 9993 | operands() const; |
| 9994 | |
| 9995 | // .xla.VariadicOperation varop = 2; |
| 9996 | void clear_varop(); |
| 9997 | static const int kVaropFieldNumber = 2; |
| 9998 | ::xla::VariadicOperation varop() const; |
| 9999 | void set_varop(::xla::VariadicOperation value); |
| 10000 | |
| 10001 | // @@protoc_insertion_point(class_scope:xla.VariadicOpRequest) |
| 10002 | private: |
| 10003 | |
| 10004 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 10005 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 10006 | typedef void InternalArenaConstructable_; |
| 10007 | typedef void DestructorSkippable_; |
| 10008 | ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle > operands_; |
| 10009 | int varop_; |
| 10010 | mutable int _cached_size_; |
| 10011 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 10012 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsVariadicOpRequestImpl(); |
| 10013 | }; |
| 10014 | // ------------------------------------------------------------------- |
| 10015 | |
| 10016 | class ReducePrecisionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ReducePrecisionRequest) */ { |
| 10017 | public: |
| 10018 | ReducePrecisionRequest(); |
| 10019 | virtual ~ReducePrecisionRequest(); |
| 10020 | |
| 10021 | ReducePrecisionRequest(const ReducePrecisionRequest& from); |
| 10022 | |
| 10023 | inline ReducePrecisionRequest& operator=(const ReducePrecisionRequest& from) { |
| 10024 | CopyFrom(from); |
| 10025 | return *this; |
| 10026 | } |
| 10027 | #if LANG_CXX11 |
| 10028 | ReducePrecisionRequest(ReducePrecisionRequest&& from) noexcept |
| 10029 | : ReducePrecisionRequest() { |
| 10030 | *this = ::std::move(from); |
| 10031 | } |
| 10032 | |
| 10033 | inline ReducePrecisionRequest& operator=(ReducePrecisionRequest&& from) noexcept { |
| 10034 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 10035 | if (this != &from) InternalSwap(&from); |
| 10036 | } else { |
| 10037 | CopyFrom(from); |
| 10038 | } |
| 10039 | return *this; |
| 10040 | } |
| 10041 | #endif |
| 10042 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 10043 | return GetArenaNoVirtual(); |
| 10044 | } |
| 10045 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 10046 | return MaybeArenaPtr(); |
| 10047 | } |
| 10048 | static const ::google::protobuf::Descriptor* descriptor(); |
| 10049 | static const ReducePrecisionRequest& default_instance(); |
| 10050 | |
| 10051 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 10052 | static inline const ReducePrecisionRequest* internal_default_instance() { |
| 10053 | return reinterpret_cast<const ReducePrecisionRequest*>( |
| 10054 | &_ReducePrecisionRequest_default_instance_); |
| 10055 | } |
| 10056 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 10057 | 61; |
| 10058 | |
| 10059 | void UnsafeArenaSwap(ReducePrecisionRequest* other); |
| 10060 | void Swap(ReducePrecisionRequest* other); |
| 10061 | friend void swap(ReducePrecisionRequest& a, ReducePrecisionRequest& b) { |
| 10062 | a.Swap(&b); |
| 10063 | } |
| 10064 | |
| 10065 | // implements Message ---------------------------------------------- |
| 10066 | |
| 10067 | inline ReducePrecisionRequest* New() const PROTOBUF_FINAL { |
| 10068 | return ::google::protobuf::Arena::CreateMessage<ReducePrecisionRequest>(NULL); |
| 10069 | } |
| 10070 | |
| 10071 | ReducePrecisionRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 10072 | return ::google::protobuf::Arena::CreateMessage<ReducePrecisionRequest>(arena); |
| 10073 | } |
| 10074 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10075 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10076 | void CopyFrom(const ReducePrecisionRequest& from); |
| 10077 | void MergeFrom(const ReducePrecisionRequest& from); |
| 10078 | void Clear() PROTOBUF_FINAL; |
| 10079 | bool IsInitialized() const PROTOBUF_FINAL; |
| 10080 | |
| 10081 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 10082 | bool MergePartialFromCodedStream( |
| 10083 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 10084 | void SerializeWithCachedSizes( |
| 10085 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 10086 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 10087 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 10088 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 10089 | private: |
| 10090 | void SharedCtor(); |
| 10091 | void SharedDtor(); |
| 10092 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 10093 | void InternalSwap(ReducePrecisionRequest* other); |
| 10094 | protected: |
| 10095 | explicit ReducePrecisionRequest(::google::protobuf::Arena* arena); |
| 10096 | private: |
| 10097 | static void ArenaDtor(void* object); |
| 10098 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 10099 | private: |
| 10100 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 10101 | return _internal_metadata_.arena(); |
| 10102 | } |
| 10103 | inline void* MaybeArenaPtr() const { |
| 10104 | return _internal_metadata_.raw_arena_ptr(); |
| 10105 | } |
| 10106 | public: |
| 10107 | |
| 10108 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 10109 | |
| 10110 | // nested types ---------------------------------------------------- |
| 10111 | |
| 10112 | // accessors ------------------------------------------------------- |
| 10113 | |
| 10114 | // .xla.ComputationDataHandle operand = 1; |
| 10115 | bool has_operand() const; |
| 10116 | void clear_operand(); |
| 10117 | static const int kOperandFieldNumber = 1; |
| 10118 | const ::xla::ComputationDataHandle& operand() const; |
| 10119 | ::xla::ComputationDataHandle* release_operand(); |
| 10120 | ::xla::ComputationDataHandle* mutable_operand(); |
| 10121 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 10122 | void unsafe_arena_set_allocated_operand( |
| 10123 | ::xla::ComputationDataHandle* operand); |
| 10124 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 10125 | |
| 10126 | // int32 exponent_bits = 2; |
| 10127 | void clear_exponent_bits(); |
| 10128 | static const int kExponentBitsFieldNumber = 2; |
| 10129 | ::google::protobuf::int32 exponent_bits() const; |
| 10130 | void set_exponent_bits(::google::protobuf::int32 value); |
| 10131 | |
| 10132 | // int32 mantissa_bits = 3; |
| 10133 | void clear_mantissa_bits(); |
| 10134 | static const int kMantissaBitsFieldNumber = 3; |
| 10135 | ::google::protobuf::int32 mantissa_bits() const; |
| 10136 | void set_mantissa_bits(::google::protobuf::int32 value); |
| 10137 | |
| 10138 | // @@protoc_insertion_point(class_scope:xla.ReducePrecisionRequest) |
| 10139 | private: |
| 10140 | |
| 10141 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 10142 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 10143 | typedef void InternalArenaConstructable_; |
| 10144 | typedef void DestructorSkippable_; |
| 10145 | ::xla::ComputationDataHandle* operand_; |
| 10146 | ::google::protobuf::int32 exponent_bits_; |
| 10147 | ::google::protobuf::int32 mantissa_bits_; |
| 10148 | mutable int _cached_size_; |
| 10149 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 10150 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsReducePrecisionRequestImpl(); |
| 10151 | }; |
| 10152 | // ------------------------------------------------------------------- |
| 10153 | |
| 10154 | class SendRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.SendRequest) */ { |
| 10155 | public: |
| 10156 | SendRequest(); |
| 10157 | virtual ~SendRequest(); |
| 10158 | |
| 10159 | SendRequest(const SendRequest& from); |
| 10160 | |
| 10161 | inline SendRequest& operator=(const SendRequest& from) { |
| 10162 | CopyFrom(from); |
| 10163 | return *this; |
| 10164 | } |
| 10165 | #if LANG_CXX11 |
| 10166 | SendRequest(SendRequest&& from) noexcept |
| 10167 | : SendRequest() { |
| 10168 | *this = ::std::move(from); |
| 10169 | } |
| 10170 | |
| 10171 | inline SendRequest& operator=(SendRequest&& from) noexcept { |
| 10172 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 10173 | if (this != &from) InternalSwap(&from); |
| 10174 | } else { |
| 10175 | CopyFrom(from); |
| 10176 | } |
| 10177 | return *this; |
| 10178 | } |
| 10179 | #endif |
| 10180 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 10181 | return GetArenaNoVirtual(); |
| 10182 | } |
| 10183 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 10184 | return MaybeArenaPtr(); |
| 10185 | } |
| 10186 | static const ::google::protobuf::Descriptor* descriptor(); |
| 10187 | static const SendRequest& default_instance(); |
| 10188 | |
| 10189 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 10190 | static inline const SendRequest* internal_default_instance() { |
| 10191 | return reinterpret_cast<const SendRequest*>( |
| 10192 | &_SendRequest_default_instance_); |
| 10193 | } |
| 10194 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 10195 | 62; |
| 10196 | |
| 10197 | void UnsafeArenaSwap(SendRequest* other); |
| 10198 | void Swap(SendRequest* other); |
| 10199 | friend void swap(SendRequest& a, SendRequest& b) { |
| 10200 | a.Swap(&b); |
| 10201 | } |
| 10202 | |
| 10203 | // implements Message ---------------------------------------------- |
| 10204 | |
| 10205 | inline SendRequest* New() const PROTOBUF_FINAL { |
| 10206 | return ::google::protobuf::Arena::CreateMessage<SendRequest>(NULL); |
| 10207 | } |
| 10208 | |
| 10209 | SendRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 10210 | return ::google::protobuf::Arena::CreateMessage<SendRequest>(arena); |
| 10211 | } |
| 10212 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10213 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10214 | void CopyFrom(const SendRequest& from); |
| 10215 | void MergeFrom(const SendRequest& from); |
| 10216 | void Clear() PROTOBUF_FINAL; |
| 10217 | bool IsInitialized() const PROTOBUF_FINAL; |
| 10218 | |
| 10219 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 10220 | bool MergePartialFromCodedStream( |
| 10221 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 10222 | void SerializeWithCachedSizes( |
| 10223 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 10224 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 10225 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 10226 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 10227 | private: |
| 10228 | void SharedCtor(); |
| 10229 | void SharedDtor(); |
| 10230 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 10231 | void InternalSwap(SendRequest* other); |
| 10232 | protected: |
| 10233 | explicit SendRequest(::google::protobuf::Arena* arena); |
| 10234 | private: |
| 10235 | static void ArenaDtor(void* object); |
| 10236 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 10237 | private: |
| 10238 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 10239 | return _internal_metadata_.arena(); |
| 10240 | } |
| 10241 | inline void* MaybeArenaPtr() const { |
| 10242 | return _internal_metadata_.raw_arena_ptr(); |
| 10243 | } |
| 10244 | public: |
| 10245 | |
| 10246 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 10247 | |
| 10248 | // nested types ---------------------------------------------------- |
| 10249 | |
| 10250 | // accessors ------------------------------------------------------- |
| 10251 | |
| 10252 | // .xla.ComputationDataHandle operand = 1; |
| 10253 | bool has_operand() const; |
| 10254 | void clear_operand(); |
| 10255 | static const int kOperandFieldNumber = 1; |
| 10256 | const ::xla::ComputationDataHandle& operand() const; |
| 10257 | ::xla::ComputationDataHandle* release_operand(); |
| 10258 | ::xla::ComputationDataHandle* mutable_operand(); |
| 10259 | void set_allocated_operand(::xla::ComputationDataHandle* operand); |
| 10260 | void unsafe_arena_set_allocated_operand( |
| 10261 | ::xla::ComputationDataHandle* operand); |
| 10262 | ::xla::ComputationDataHandle* unsafe_arena_release_operand(); |
| 10263 | |
| 10264 | // .xla.ChannelHandle channel_handle = 2; |
| 10265 | bool has_channel_handle() const; |
| 10266 | void clear_channel_handle(); |
| 10267 | static const int kChannelHandleFieldNumber = 2; |
| 10268 | const ::xla::ChannelHandle& channel_handle() const; |
| 10269 | ::xla::ChannelHandle* release_channel_handle(); |
| 10270 | ::xla::ChannelHandle* mutable_channel_handle(); |
| 10271 | void set_allocated_channel_handle(::xla::ChannelHandle* channel_handle); |
| 10272 | void unsafe_arena_set_allocated_channel_handle( |
| 10273 | ::xla::ChannelHandle* channel_handle); |
| 10274 | ::xla::ChannelHandle* unsafe_arena_release_channel_handle(); |
| 10275 | |
| 10276 | // @@protoc_insertion_point(class_scope:xla.SendRequest) |
| 10277 | private: |
| 10278 | |
| 10279 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 10280 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 10281 | typedef void InternalArenaConstructable_; |
| 10282 | typedef void DestructorSkippable_; |
| 10283 | ::xla::ComputationDataHandle* operand_; |
| 10284 | ::xla::ChannelHandle* channel_handle_; |
| 10285 | mutable int _cached_size_; |
| 10286 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 10287 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsSendRequestImpl(); |
| 10288 | }; |
| 10289 | // ------------------------------------------------------------------- |
| 10290 | |
| 10291 | class RecvRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.RecvRequest) */ { |
| 10292 | public: |
| 10293 | RecvRequest(); |
| 10294 | virtual ~RecvRequest(); |
| 10295 | |
| 10296 | RecvRequest(const RecvRequest& from); |
| 10297 | |
| 10298 | inline RecvRequest& operator=(const RecvRequest& from) { |
| 10299 | CopyFrom(from); |
| 10300 | return *this; |
| 10301 | } |
| 10302 | #if LANG_CXX11 |
| 10303 | RecvRequest(RecvRequest&& from) noexcept |
| 10304 | : RecvRequest() { |
| 10305 | *this = ::std::move(from); |
| 10306 | } |
| 10307 | |
| 10308 | inline RecvRequest& operator=(RecvRequest&& from) noexcept { |
| 10309 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 10310 | if (this != &from) InternalSwap(&from); |
| 10311 | } else { |
| 10312 | CopyFrom(from); |
| 10313 | } |
| 10314 | return *this; |
| 10315 | } |
| 10316 | #endif |
| 10317 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 10318 | return GetArenaNoVirtual(); |
| 10319 | } |
| 10320 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 10321 | return MaybeArenaPtr(); |
| 10322 | } |
| 10323 | static const ::google::protobuf::Descriptor* descriptor(); |
| 10324 | static const RecvRequest& default_instance(); |
| 10325 | |
| 10326 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 10327 | static inline const RecvRequest* internal_default_instance() { |
| 10328 | return reinterpret_cast<const RecvRequest*>( |
| 10329 | &_RecvRequest_default_instance_); |
| 10330 | } |
| 10331 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 10332 | 63; |
| 10333 | |
| 10334 | void UnsafeArenaSwap(RecvRequest* other); |
| 10335 | void Swap(RecvRequest* other); |
| 10336 | friend void swap(RecvRequest& a, RecvRequest& b) { |
| 10337 | a.Swap(&b); |
| 10338 | } |
| 10339 | |
| 10340 | // implements Message ---------------------------------------------- |
| 10341 | |
| 10342 | inline RecvRequest* New() const PROTOBUF_FINAL { |
| 10343 | return ::google::protobuf::Arena::CreateMessage<RecvRequest>(NULL); |
| 10344 | } |
| 10345 | |
| 10346 | RecvRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 10347 | return ::google::protobuf::Arena::CreateMessage<RecvRequest>(arena); |
| 10348 | } |
| 10349 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10350 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10351 | void CopyFrom(const RecvRequest& from); |
| 10352 | void MergeFrom(const RecvRequest& from); |
| 10353 | void Clear() PROTOBUF_FINAL; |
| 10354 | bool IsInitialized() const PROTOBUF_FINAL; |
| 10355 | |
| 10356 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 10357 | bool MergePartialFromCodedStream( |
| 10358 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 10359 | void SerializeWithCachedSizes( |
| 10360 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 10361 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 10362 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 10363 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 10364 | private: |
| 10365 | void SharedCtor(); |
| 10366 | void SharedDtor(); |
| 10367 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 10368 | void InternalSwap(RecvRequest* other); |
| 10369 | protected: |
| 10370 | explicit RecvRequest(::google::protobuf::Arena* arena); |
| 10371 | private: |
| 10372 | static void ArenaDtor(void* object); |
| 10373 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 10374 | private: |
| 10375 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 10376 | return _internal_metadata_.arena(); |
| 10377 | } |
| 10378 | inline void* MaybeArenaPtr() const { |
| 10379 | return _internal_metadata_.raw_arena_ptr(); |
| 10380 | } |
| 10381 | public: |
| 10382 | |
| 10383 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 10384 | |
| 10385 | // nested types ---------------------------------------------------- |
| 10386 | |
| 10387 | // accessors ------------------------------------------------------- |
| 10388 | |
| 10389 | // .xla.Shape shape = 1; |
| 10390 | bool has_shape() const; |
| 10391 | void clear_shape(); |
| 10392 | static const int kShapeFieldNumber = 1; |
| 10393 | const ::xla::Shape& shape() const; |
| 10394 | ::xla::Shape* release_shape(); |
| 10395 | ::xla::Shape* mutable_shape(); |
| 10396 | void set_allocated_shape(::xla::Shape* shape); |
| 10397 | void unsafe_arena_set_allocated_shape( |
| 10398 | ::xla::Shape* shape); |
| 10399 | ::xla::Shape* unsafe_arena_release_shape(); |
| 10400 | |
| 10401 | // .xla.ChannelHandle channel_handle = 2; |
| 10402 | bool has_channel_handle() const; |
| 10403 | void clear_channel_handle(); |
| 10404 | static const int kChannelHandleFieldNumber = 2; |
| 10405 | const ::xla::ChannelHandle& channel_handle() const; |
| 10406 | ::xla::ChannelHandle* release_channel_handle(); |
| 10407 | ::xla::ChannelHandle* mutable_channel_handle(); |
| 10408 | void set_allocated_channel_handle(::xla::ChannelHandle* channel_handle); |
| 10409 | void unsafe_arena_set_allocated_channel_handle( |
| 10410 | ::xla::ChannelHandle* channel_handle); |
| 10411 | ::xla::ChannelHandle* unsafe_arena_release_channel_handle(); |
| 10412 | |
| 10413 | // @@protoc_insertion_point(class_scope:xla.RecvRequest) |
| 10414 | private: |
| 10415 | |
| 10416 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 10417 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 10418 | typedef void InternalArenaConstructable_; |
| 10419 | typedef void DestructorSkippable_; |
| 10420 | ::xla::Shape* shape_; |
| 10421 | ::xla::ChannelHandle* channel_handle_; |
| 10422 | mutable int _cached_size_; |
| 10423 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 10424 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsRecvRequestImpl(); |
| 10425 | }; |
| 10426 | // ------------------------------------------------------------------- |
| 10427 | |
| 10428 | class GatherRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GatherRequest) */ { |
| 10429 | public: |
| 10430 | GatherRequest(); |
| 10431 | virtual ~GatherRequest(); |
| 10432 | |
| 10433 | GatherRequest(const GatherRequest& from); |
| 10434 | |
| 10435 | inline GatherRequest& operator=(const GatherRequest& from) { |
| 10436 | CopyFrom(from); |
| 10437 | return *this; |
| 10438 | } |
| 10439 | #if LANG_CXX11 |
| 10440 | GatherRequest(GatherRequest&& from) noexcept |
| 10441 | : GatherRequest() { |
| 10442 | *this = ::std::move(from); |
| 10443 | } |
| 10444 | |
| 10445 | inline GatherRequest& operator=(GatherRequest&& from) noexcept { |
| 10446 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 10447 | if (this != &from) InternalSwap(&from); |
| 10448 | } else { |
| 10449 | CopyFrom(from); |
| 10450 | } |
| 10451 | return *this; |
| 10452 | } |
| 10453 | #endif |
| 10454 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 10455 | return GetArenaNoVirtual(); |
| 10456 | } |
| 10457 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 10458 | return MaybeArenaPtr(); |
| 10459 | } |
| 10460 | static const ::google::protobuf::Descriptor* descriptor(); |
| 10461 | static const GatherRequest& default_instance(); |
| 10462 | |
| 10463 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 10464 | static inline const GatherRequest* internal_default_instance() { |
| 10465 | return reinterpret_cast<const GatherRequest*>( |
| 10466 | &_GatherRequest_default_instance_); |
| 10467 | } |
| 10468 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 10469 | 64; |
| 10470 | |
| 10471 | void UnsafeArenaSwap(GatherRequest* other); |
| 10472 | void Swap(GatherRequest* other); |
| 10473 | friend void swap(GatherRequest& a, GatherRequest& b) { |
| 10474 | a.Swap(&b); |
| 10475 | } |
| 10476 | |
| 10477 | // implements Message ---------------------------------------------- |
| 10478 | |
| 10479 | inline GatherRequest* New() const PROTOBUF_FINAL { |
| 10480 | return ::google::protobuf::Arena::CreateMessage<GatherRequest>(NULL); |
| 10481 | } |
| 10482 | |
| 10483 | GatherRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 10484 | return ::google::protobuf::Arena::CreateMessage<GatherRequest>(arena); |
| 10485 | } |
| 10486 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10487 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10488 | void CopyFrom(const GatherRequest& from); |
| 10489 | void MergeFrom(const GatherRequest& from); |
| 10490 | void Clear() PROTOBUF_FINAL; |
| 10491 | bool IsInitialized() const PROTOBUF_FINAL; |
| 10492 | |
| 10493 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 10494 | bool MergePartialFromCodedStream( |
| 10495 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 10496 | void SerializeWithCachedSizes( |
| 10497 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 10498 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 10499 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 10500 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 10501 | private: |
| 10502 | void SharedCtor(); |
| 10503 | void SharedDtor(); |
| 10504 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 10505 | void InternalSwap(GatherRequest* other); |
| 10506 | protected: |
| 10507 | explicit GatherRequest(::google::protobuf::Arena* arena); |
| 10508 | private: |
| 10509 | static void ArenaDtor(void* object); |
| 10510 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 10511 | private: |
| 10512 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 10513 | return _internal_metadata_.arena(); |
| 10514 | } |
| 10515 | inline void* MaybeArenaPtr() const { |
| 10516 | return _internal_metadata_.raw_arena_ptr(); |
| 10517 | } |
| 10518 | public: |
| 10519 | |
| 10520 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 10521 | |
| 10522 | // nested types ---------------------------------------------------- |
| 10523 | |
| 10524 | // accessors ------------------------------------------------------- |
| 10525 | |
| 10526 | // repeated int64 window_bounds = 4; |
| 10527 | int window_bounds_size() const; |
| 10528 | void clear_window_bounds(); |
| 10529 | static const int kWindowBoundsFieldNumber = 4; |
| 10530 | ::google::protobuf::int64 window_bounds(int index) const; |
| 10531 | void set_window_bounds(int index, ::google::protobuf::int64 value); |
| 10532 | void add_window_bounds(::google::protobuf::int64 value); |
| 10533 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 10534 | window_bounds() const; |
| 10535 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 10536 | mutable_window_bounds(); |
| 10537 | |
| 10538 | // .xla.ComputationDataHandle input = 1; |
| 10539 | bool has_input() const; |
| 10540 | void clear_input(); |
| 10541 | static const int kInputFieldNumber = 1; |
| 10542 | const ::xla::ComputationDataHandle& input() const; |
| 10543 | ::xla::ComputationDataHandle* release_input(); |
| 10544 | ::xla::ComputationDataHandle* mutable_input(); |
| 10545 | void set_allocated_input(::xla::ComputationDataHandle* input); |
| 10546 | void unsafe_arena_set_allocated_input( |
| 10547 | ::xla::ComputationDataHandle* input); |
| 10548 | ::xla::ComputationDataHandle* unsafe_arena_release_input(); |
| 10549 | |
| 10550 | // .xla.ComputationDataHandle gather_indices = 2; |
| 10551 | bool has_gather_indices() const; |
| 10552 | void clear_gather_indices(); |
| 10553 | static const int kGatherIndicesFieldNumber = 2; |
| 10554 | const ::xla::ComputationDataHandle& gather_indices() const; |
| 10555 | ::xla::ComputationDataHandle* release_gather_indices(); |
| 10556 | ::xla::ComputationDataHandle* mutable_gather_indices(); |
| 10557 | void set_allocated_gather_indices(::xla::ComputationDataHandle* gather_indices); |
| 10558 | void unsafe_arena_set_allocated_gather_indices( |
| 10559 | ::xla::ComputationDataHandle* gather_indices); |
| 10560 | ::xla::ComputationDataHandle* unsafe_arena_release_gather_indices(); |
| 10561 | |
| 10562 | // .xla.GatherDimensionNumbers dimension_numbers = 3; |
| 10563 | bool has_dimension_numbers() const; |
| 10564 | void clear_dimension_numbers(); |
| 10565 | static const int kDimensionNumbersFieldNumber = 3; |
| 10566 | const ::xla::GatherDimensionNumbers& dimension_numbers() const; |
| 10567 | ::xla::GatherDimensionNumbers* release_dimension_numbers(); |
| 10568 | ::xla::GatherDimensionNumbers* mutable_dimension_numbers(); |
| 10569 | void set_allocated_dimension_numbers(::xla::GatherDimensionNumbers* dimension_numbers); |
| 10570 | void unsafe_arena_set_allocated_dimension_numbers( |
| 10571 | ::xla::GatherDimensionNumbers* dimension_numbers); |
| 10572 | ::xla::GatherDimensionNumbers* unsafe_arena_release_dimension_numbers(); |
| 10573 | |
| 10574 | // @@protoc_insertion_point(class_scope:xla.GatherRequest) |
| 10575 | private: |
| 10576 | |
| 10577 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 10578 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 10579 | typedef void InternalArenaConstructable_; |
| 10580 | typedef void DestructorSkippable_; |
| 10581 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > window_bounds_; |
| 10582 | mutable int _window_bounds_cached_byte_size_; |
| 10583 | ::xla::ComputationDataHandle* input_; |
| 10584 | ::xla::ComputationDataHandle* gather_indices_; |
| 10585 | ::xla::GatherDimensionNumbers* dimension_numbers_; |
| 10586 | mutable int _cached_size_; |
| 10587 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 10588 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsGatherRequestImpl(); |
| 10589 | }; |
| 10590 | // ------------------------------------------------------------------- |
| 10591 | |
| 10592 | class OpSharding : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OpSharding) */ { |
| 10593 | public: |
| 10594 | OpSharding(); |
| 10595 | virtual ~OpSharding(); |
| 10596 | |
| 10597 | OpSharding(const OpSharding& from); |
| 10598 | |
| 10599 | inline OpSharding& operator=(const OpSharding& from) { |
| 10600 | CopyFrom(from); |
| 10601 | return *this; |
| 10602 | } |
| 10603 | #if LANG_CXX11 |
| 10604 | OpSharding(OpSharding&& from) noexcept |
| 10605 | : OpSharding() { |
| 10606 | *this = ::std::move(from); |
| 10607 | } |
| 10608 | |
| 10609 | inline OpSharding& operator=(OpSharding&& from) noexcept { |
| 10610 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 10611 | if (this != &from) InternalSwap(&from); |
| 10612 | } else { |
| 10613 | CopyFrom(from); |
| 10614 | } |
| 10615 | return *this; |
| 10616 | } |
| 10617 | #endif |
| 10618 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 10619 | return GetArenaNoVirtual(); |
| 10620 | } |
| 10621 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 10622 | return MaybeArenaPtr(); |
| 10623 | } |
| 10624 | static const ::google::protobuf::Descriptor* descriptor(); |
| 10625 | static const OpSharding& default_instance(); |
| 10626 | |
| 10627 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 10628 | static inline const OpSharding* internal_default_instance() { |
| 10629 | return reinterpret_cast<const OpSharding*>( |
| 10630 | &_OpSharding_default_instance_); |
| 10631 | } |
| 10632 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 10633 | 65; |
| 10634 | |
| 10635 | void UnsafeArenaSwap(OpSharding* other); |
| 10636 | void Swap(OpSharding* other); |
| 10637 | friend void swap(OpSharding& a, OpSharding& b) { |
| 10638 | a.Swap(&b); |
| 10639 | } |
| 10640 | |
| 10641 | // implements Message ---------------------------------------------- |
| 10642 | |
| 10643 | inline OpSharding* New() const PROTOBUF_FINAL { |
| 10644 | return ::google::protobuf::Arena::CreateMessage<OpSharding>(NULL); |
| 10645 | } |
| 10646 | |
| 10647 | OpSharding* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 10648 | return ::google::protobuf::Arena::CreateMessage<OpSharding>(arena); |
| 10649 | } |
| 10650 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10651 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10652 | void CopyFrom(const OpSharding& from); |
| 10653 | void MergeFrom(const OpSharding& from); |
| 10654 | void Clear() PROTOBUF_FINAL; |
| 10655 | bool IsInitialized() const PROTOBUF_FINAL; |
| 10656 | |
| 10657 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 10658 | bool MergePartialFromCodedStream( |
| 10659 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 10660 | void SerializeWithCachedSizes( |
| 10661 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 10662 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 10663 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 10664 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 10665 | private: |
| 10666 | void SharedCtor(); |
| 10667 | void SharedDtor(); |
| 10668 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 10669 | void InternalSwap(OpSharding* other); |
| 10670 | protected: |
| 10671 | explicit OpSharding(::google::protobuf::Arena* arena); |
| 10672 | private: |
| 10673 | static void ArenaDtor(void* object); |
| 10674 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 10675 | private: |
| 10676 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 10677 | return _internal_metadata_.arena(); |
| 10678 | } |
| 10679 | inline void* MaybeArenaPtr() const { |
| 10680 | return _internal_metadata_.raw_arena_ptr(); |
| 10681 | } |
| 10682 | public: |
| 10683 | |
| 10684 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 10685 | |
| 10686 | // nested types ---------------------------------------------------- |
| 10687 | |
| 10688 | typedef OpSharding_Type Type; |
| 10689 | static const Type REPLICATED = |
| 10690 | OpSharding_Type_REPLICATED; |
| 10691 | static const Type MAXIMAL = |
| 10692 | OpSharding_Type_MAXIMAL; |
| 10693 | static const Type TUPLE = |
| 10694 | OpSharding_Type_TUPLE; |
| 10695 | static const Type OTHER = |
| 10696 | OpSharding_Type_OTHER; |
| 10697 | static inline bool Type_IsValid(int value) { |
| 10698 | return OpSharding_Type_IsValid(value); |
| 10699 | } |
| 10700 | static const Type Type_MIN = |
| 10701 | OpSharding_Type_Type_MIN; |
| 10702 | static const Type Type_MAX = |
| 10703 | OpSharding_Type_Type_MAX; |
| 10704 | static const int Type_ARRAYSIZE = |
| 10705 | OpSharding_Type_Type_ARRAYSIZE; |
| 10706 | static inline const ::google::protobuf::EnumDescriptor* |
| 10707 | Type_descriptor() { |
| 10708 | return OpSharding_Type_descriptor(); |
| 10709 | } |
| 10710 | static inline const ::std::string& Type_Name(Type value) { |
| 10711 | return OpSharding_Type_Name(value); |
| 10712 | } |
| 10713 | static inline bool Type_Parse(const ::std::string& name, |
| 10714 | Type* value) { |
| 10715 | return OpSharding_Type_Parse(name, value); |
| 10716 | } |
| 10717 | |
| 10718 | // accessors ------------------------------------------------------- |
| 10719 | |
| 10720 | // repeated int64 tile_assignment_dimensions = 3; |
| 10721 | int tile_assignment_dimensions_size() const; |
| 10722 | void clear_tile_assignment_dimensions(); |
| 10723 | static const int kTileAssignmentDimensionsFieldNumber = 3; |
| 10724 | ::google::protobuf::int64 tile_assignment_dimensions(int index) const; |
| 10725 | void set_tile_assignment_dimensions(int index, ::google::protobuf::int64 value); |
| 10726 | void add_tile_assignment_dimensions(::google::protobuf::int64 value); |
| 10727 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 10728 | tile_assignment_dimensions() const; |
| 10729 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 10730 | mutable_tile_assignment_dimensions(); |
| 10731 | |
| 10732 | // repeated int64 tile_assignment_devices = 4; |
| 10733 | int tile_assignment_devices_size() const; |
| 10734 | void clear_tile_assignment_devices(); |
| 10735 | static const int kTileAssignmentDevicesFieldNumber = 4; |
| 10736 | ::google::protobuf::int64 tile_assignment_devices(int index) const; |
| 10737 | void set_tile_assignment_devices(int index, ::google::protobuf::int64 value); |
| 10738 | void add_tile_assignment_devices(::google::protobuf::int64 value); |
| 10739 | const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 10740 | tile_assignment_devices() const; |
| 10741 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 10742 | mutable_tile_assignment_devices(); |
| 10743 | |
| 10744 | // repeated .xla.OpSharding tuple_shardings = 5; |
| 10745 | int tuple_shardings_size() const; |
| 10746 | void clear_tuple_shardings(); |
| 10747 | static const int kTupleShardingsFieldNumber = 5; |
| 10748 | ::xla::OpSharding* mutable_tuple_shardings(int index); |
| 10749 | ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >* |
| 10750 | mutable_tuple_shardings(); |
| 10751 | const ::xla::OpSharding& tuple_shardings(int index) const; |
| 10752 | ::xla::OpSharding* add_tuple_shardings(); |
| 10753 | const ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >& |
| 10754 | tuple_shardings() const; |
| 10755 | |
| 10756 | // .xla.Shape tile_shape = 2; |
| 10757 | bool has_tile_shape() const; |
| 10758 | void clear_tile_shape(); |
| 10759 | static const int kTileShapeFieldNumber = 2; |
| 10760 | const ::xla::Shape& tile_shape() const; |
| 10761 | ::xla::Shape* release_tile_shape(); |
| 10762 | ::xla::Shape* mutable_tile_shape(); |
| 10763 | void set_allocated_tile_shape(::xla::Shape* tile_shape); |
| 10764 | void unsafe_arena_set_allocated_tile_shape( |
| 10765 | ::xla::Shape* tile_shape); |
| 10766 | ::xla::Shape* unsafe_arena_release_tile_shape(); |
| 10767 | |
| 10768 | // .xla.OpSharding.Type type = 1; |
| 10769 | void clear_type(); |
| 10770 | static const int kTypeFieldNumber = 1; |
| 10771 | ::xla::OpSharding_Type type() const; |
| 10772 | void set_type(::xla::OpSharding_Type value); |
| 10773 | |
| 10774 | // @@protoc_insertion_point(class_scope:xla.OpSharding) |
| 10775 | private: |
| 10776 | |
| 10777 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 10778 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 10779 | typedef void InternalArenaConstructable_; |
| 10780 | typedef void DestructorSkippable_; |
| 10781 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > tile_assignment_dimensions_; |
| 10782 | mutable int _tile_assignment_dimensions_cached_byte_size_; |
| 10783 | ::google::protobuf::RepeatedField< ::google::protobuf::int64 > tile_assignment_devices_; |
| 10784 | mutable int _tile_assignment_devices_cached_byte_size_; |
| 10785 | ::google::protobuf::RepeatedPtrField< ::xla::OpSharding > tuple_shardings_; |
| 10786 | ::xla::Shape* tile_shape_; |
| 10787 | int type_; |
| 10788 | mutable int _cached_size_; |
| 10789 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 10790 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsOpShardingImpl(); |
| 10791 | }; |
| 10792 | // ------------------------------------------------------------------- |
| 10793 | |
| 10794 | class OpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OpRequest) */ { |
| 10795 | public: |
| 10796 | OpRequest(); |
| 10797 | virtual ~OpRequest(); |
| 10798 | |
| 10799 | OpRequest(const OpRequest& from); |
| 10800 | |
| 10801 | inline OpRequest& operator=(const OpRequest& from) { |
| 10802 | CopyFrom(from); |
| 10803 | return *this; |
| 10804 | } |
| 10805 | #if LANG_CXX11 |
| 10806 | OpRequest(OpRequest&& from) noexcept |
| 10807 | : OpRequest() { |
| 10808 | *this = ::std::move(from); |
| 10809 | } |
| 10810 | |
| 10811 | inline OpRequest& operator=(OpRequest&& from) noexcept { |
| 10812 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 10813 | if (this != &from) InternalSwap(&from); |
| 10814 | } else { |
| 10815 | CopyFrom(from); |
| 10816 | } |
| 10817 | return *this; |
| 10818 | } |
| 10819 | #endif |
| 10820 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 10821 | return GetArenaNoVirtual(); |
| 10822 | } |
| 10823 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 10824 | return MaybeArenaPtr(); |
| 10825 | } |
| 10826 | static const ::google::protobuf::Descriptor* descriptor(); |
| 10827 | static const OpRequest& default_instance(); |
| 10828 | |
| 10829 | enum OpCase { |
| 10830 | kBinaryOpRequest = 2, |
| 10831 | kBroadcastRequest = 3, |
| 10832 | kCallRequest = 4, |
| 10833 | kConcatenateRequest = 5, |
| 10834 | kConstantRequest = 6, |
| 10835 | kConvertRequest = 7, |
| 10836 | kConvolveRequest = 8, |
| 10837 | kCrossReplicaSumRequest = 9, |
| 10838 | kCustomCallRequest = 10, |
| 10839 | kDotRequest = 43, |
| 10840 | kDynamicSliceRequest = 11, |
| 10841 | kDynamicUpdateSliceRequest = 12, |
| 10842 | kGetTupleElementRequest = 13, |
| 10843 | kInfeedRequest = 14, |
| 10844 | kMapRequest = 15, |
| 10845 | kPadRequest = 16, |
| 10846 | kParameterRequest = 17, |
| 10847 | kReducePrecisionRequest = 36, |
| 10848 | kReduceRequest = 18, |
| 10849 | kReduceWindowRequest = 19, |
| 10850 | kReshapeRequest = 20, |
| 10851 | kReverseRequest = 21, |
| 10852 | kRngRequest = 22, |
| 10853 | kSelectAndScatterRequest = 23, |
| 10854 | kSliceRequest = 24, |
| 10855 | kTernaryOpRequest = 25, |
| 10856 | kTraceRequest = 26, |
| 10857 | kTransposeRequest = 34, |
| 10858 | kUnaryOpRequest = 27, |
| 10859 | kVariadicOpRequest = 28, |
| 10860 | kWhileRequest = 29, |
| 10861 | kSendRequest = 30, |
| 10862 | kRecvRequest = 31, |
| 10863 | kOutfeedRequest = 32, |
| 10864 | kBatchNormTrainingRequest = 35, |
| 10865 | kBatchNormGradRequest = 37, |
| 10866 | kBatchNormInferenceRequest = 38, |
| 10867 | kFftRequest = 41, |
| 10868 | kBitcastConvertRequest = 42, |
| 10869 | kConditionalRequest = 44, |
| 10870 | kHostComputeRequest = 45, |
| 10871 | kGatherRequest = 46, |
| 10872 | OP_NOT_SET = 0, |
| 10873 | }; |
| 10874 | |
| 10875 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 10876 | static inline const OpRequest* internal_default_instance() { |
| 10877 | return reinterpret_cast<const OpRequest*>( |
| 10878 | &_OpRequest_default_instance_); |
| 10879 | } |
| 10880 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 10881 | 66; |
| 10882 | |
| 10883 | void UnsafeArenaSwap(OpRequest* other); |
| 10884 | void Swap(OpRequest* other); |
| 10885 | friend void swap(OpRequest& a, OpRequest& b) { |
| 10886 | a.Swap(&b); |
| 10887 | } |
| 10888 | |
| 10889 | // implements Message ---------------------------------------------- |
| 10890 | |
| 10891 | inline OpRequest* New() const PROTOBUF_FINAL { |
| 10892 | return ::google::protobuf::Arena::CreateMessage<OpRequest>(NULL); |
| 10893 | } |
| 10894 | |
| 10895 | OpRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 10896 | return ::google::protobuf::Arena::CreateMessage<OpRequest>(arena); |
| 10897 | } |
| 10898 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10899 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 10900 | void CopyFrom(const OpRequest& from); |
| 10901 | void MergeFrom(const OpRequest& from); |
| 10902 | void Clear() PROTOBUF_FINAL; |
| 10903 | bool IsInitialized() const PROTOBUF_FINAL; |
| 10904 | |
| 10905 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 10906 | bool MergePartialFromCodedStream( |
| 10907 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 10908 | void SerializeWithCachedSizes( |
| 10909 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 10910 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 10911 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 10912 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 10913 | private: |
| 10914 | void SharedCtor(); |
| 10915 | void SharedDtor(); |
| 10916 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 10917 | void InternalSwap(OpRequest* other); |
| 10918 | protected: |
| 10919 | explicit OpRequest(::google::protobuf::Arena* arena); |
| 10920 | private: |
| 10921 | static void ArenaDtor(void* object); |
| 10922 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 10923 | private: |
| 10924 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 10925 | return _internal_metadata_.arena(); |
| 10926 | } |
| 10927 | inline void* MaybeArenaPtr() const { |
| 10928 | return _internal_metadata_.raw_arena_ptr(); |
| 10929 | } |
| 10930 | public: |
| 10931 | |
| 10932 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 10933 | |
| 10934 | // nested types ---------------------------------------------------- |
| 10935 | |
| 10936 | // accessors ------------------------------------------------------- |
| 10937 | |
| 10938 | // .xla.ComputationHandle computation = 1; |
| 10939 | bool has_computation() const; |
| 10940 | void clear_computation(); |
| 10941 | static const int kComputationFieldNumber = 1; |
| 10942 | const ::xla::ComputationHandle& computation() const; |
| 10943 | ::xla::ComputationHandle* release_computation(); |
| 10944 | ::xla::ComputationHandle* mutable_computation(); |
| 10945 | void set_allocated_computation(::xla::ComputationHandle* computation); |
| 10946 | void unsafe_arena_set_allocated_computation( |
| 10947 | ::xla::ComputationHandle* computation); |
| 10948 | ::xla::ComputationHandle* unsafe_arena_release_computation(); |
| 10949 | |
| 10950 | // .xla.OpMetadata metadata = 33; |
| 10951 | bool has_metadata() const; |
| 10952 | void clear_metadata(); |
| 10953 | static const int kMetadataFieldNumber = 33; |
| 10954 | const ::xla::OpMetadata& metadata() const; |
| 10955 | ::xla::OpMetadata* release_metadata(); |
| 10956 | ::xla::OpMetadata* mutable_metadata(); |
| 10957 | void set_allocated_metadata(::xla::OpMetadata* metadata); |
| 10958 | void unsafe_arena_set_allocated_metadata( |
| 10959 | ::xla::OpMetadata* metadata); |
| 10960 | ::xla::OpMetadata* unsafe_arena_release_metadata(); |
| 10961 | |
| 10962 | // .xla.OpSharding sharding = 40; |
| 10963 | bool has_sharding() const; |
| 10964 | void clear_sharding(); |
| 10965 | static const int kShardingFieldNumber = 40; |
| 10966 | const ::xla::OpSharding& sharding() const; |
| 10967 | ::xla::OpSharding* release_sharding(); |
| 10968 | ::xla::OpSharding* mutable_sharding(); |
| 10969 | void set_allocated_sharding(::xla::OpSharding* sharding); |
| 10970 | void unsafe_arena_set_allocated_sharding( |
| 10971 | ::xla::OpSharding* sharding); |
| 10972 | ::xla::OpSharding* unsafe_arena_release_sharding(); |
| 10973 | |
| 10974 | // .xla.BinaryOpRequest binary_op_request = 2; |
| 10975 | bool has_binary_op_request() const; |
| 10976 | void clear_binary_op_request(); |
| 10977 | static const int kBinaryOpRequestFieldNumber = 2; |
| 10978 | const ::xla::BinaryOpRequest& binary_op_request() const; |
| 10979 | ::xla::BinaryOpRequest* release_binary_op_request(); |
| 10980 | ::xla::BinaryOpRequest* mutable_binary_op_request(); |
| 10981 | void set_allocated_binary_op_request(::xla::BinaryOpRequest* binary_op_request); |
| 10982 | void unsafe_arena_set_allocated_binary_op_request( |
| 10983 | ::xla::BinaryOpRequest* binary_op_request); |
| 10984 | ::xla::BinaryOpRequest* unsafe_arena_release_binary_op_request(); |
| 10985 | |
| 10986 | // .xla.BroadcastRequest broadcast_request = 3; |
| 10987 | bool has_broadcast_request() const; |
| 10988 | void clear_broadcast_request(); |
| 10989 | static const int kBroadcastRequestFieldNumber = 3; |
| 10990 | const ::xla::BroadcastRequest& broadcast_request() const; |
| 10991 | ::xla::BroadcastRequest* release_broadcast_request(); |
| 10992 | ::xla::BroadcastRequest* mutable_broadcast_request(); |
| 10993 | void set_allocated_broadcast_request(::xla::BroadcastRequest* broadcast_request); |
| 10994 | void unsafe_arena_set_allocated_broadcast_request( |
| 10995 | ::xla::BroadcastRequest* broadcast_request); |
| 10996 | ::xla::BroadcastRequest* unsafe_arena_release_broadcast_request(); |
| 10997 | |
| 10998 | // .xla.CallRequest call_request = 4; |
| 10999 | bool has_call_request() const; |
| 11000 | void clear_call_request(); |
| 11001 | static const int kCallRequestFieldNumber = 4; |
| 11002 | const ::xla::CallRequest& call_request() const; |
| 11003 | ::xla::CallRequest* release_call_request(); |
| 11004 | ::xla::CallRequest* mutable_call_request(); |
| 11005 | void set_allocated_call_request(::xla::CallRequest* call_request); |
| 11006 | void unsafe_arena_set_allocated_call_request( |
| 11007 | ::xla::CallRequest* call_request); |
| 11008 | ::xla::CallRequest* unsafe_arena_release_call_request(); |
| 11009 | |
| 11010 | // .xla.ConcatenateRequest concatenate_request = 5; |
| 11011 | bool has_concatenate_request() const; |
| 11012 | void clear_concatenate_request(); |
| 11013 | static const int kConcatenateRequestFieldNumber = 5; |
| 11014 | const ::xla::ConcatenateRequest& concatenate_request() const; |
| 11015 | ::xla::ConcatenateRequest* release_concatenate_request(); |
| 11016 | ::xla::ConcatenateRequest* mutable_concatenate_request(); |
| 11017 | void set_allocated_concatenate_request(::xla::ConcatenateRequest* concatenate_request); |
| 11018 | void unsafe_arena_set_allocated_concatenate_request( |
| 11019 | ::xla::ConcatenateRequest* concatenate_request); |
| 11020 | ::xla::ConcatenateRequest* unsafe_arena_release_concatenate_request(); |
| 11021 | |
| 11022 | // .xla.ConstantRequest constant_request = 6; |
| 11023 | bool has_constant_request() const; |
| 11024 | void clear_constant_request(); |
| 11025 | static const int kConstantRequestFieldNumber = 6; |
| 11026 | const ::xla::ConstantRequest& constant_request() const; |
| 11027 | ::xla::ConstantRequest* release_constant_request(); |
| 11028 | ::xla::ConstantRequest* mutable_constant_request(); |
| 11029 | void set_allocated_constant_request(::xla::ConstantRequest* constant_request); |
| 11030 | void unsafe_arena_set_allocated_constant_request( |
| 11031 | ::xla::ConstantRequest* constant_request); |
| 11032 | ::xla::ConstantRequest* unsafe_arena_release_constant_request(); |
| 11033 | |
| 11034 | // .xla.ConvertRequest convert_request = 7; |
| 11035 | bool has_convert_request() const; |
| 11036 | void clear_convert_request(); |
| 11037 | static const int kConvertRequestFieldNumber = 7; |
| 11038 | const ::xla::ConvertRequest& convert_request() const; |
| 11039 | ::xla::ConvertRequest* release_convert_request(); |
| 11040 | ::xla::ConvertRequest* mutable_convert_request(); |
| 11041 | void set_allocated_convert_request(::xla::ConvertRequest* convert_request); |
| 11042 | void unsafe_arena_set_allocated_convert_request( |
| 11043 | ::xla::ConvertRequest* convert_request); |
| 11044 | ::xla::ConvertRequest* unsafe_arena_release_convert_request(); |
| 11045 | |
| 11046 | // .xla.ConvolveRequest convolve_request = 8; |
| 11047 | bool has_convolve_request() const; |
| 11048 | void clear_convolve_request(); |
| 11049 | static const int kConvolveRequestFieldNumber = 8; |
| 11050 | const ::xla::ConvolveRequest& convolve_request() const; |
| 11051 | ::xla::ConvolveRequest* release_convolve_request(); |
| 11052 | ::xla::ConvolveRequest* mutable_convolve_request(); |
| 11053 | void set_allocated_convolve_request(::xla::ConvolveRequest* convolve_request); |
| 11054 | void unsafe_arena_set_allocated_convolve_request( |
| 11055 | ::xla::ConvolveRequest* convolve_request); |
| 11056 | ::xla::ConvolveRequest* unsafe_arena_release_convolve_request(); |
| 11057 | |
| 11058 | // .xla.CrossReplicaSumRequest cross_replica_sum_request = 9; |
| 11059 | bool has_cross_replica_sum_request() const; |
| 11060 | void clear_cross_replica_sum_request(); |
| 11061 | static const int kCrossReplicaSumRequestFieldNumber = 9; |
| 11062 | const ::xla::CrossReplicaSumRequest& cross_replica_sum_request() const; |
| 11063 | ::xla::CrossReplicaSumRequest* release_cross_replica_sum_request(); |
| 11064 | ::xla::CrossReplicaSumRequest* mutable_cross_replica_sum_request(); |
| 11065 | void set_allocated_cross_replica_sum_request(::xla::CrossReplicaSumRequest* cross_replica_sum_request); |
| 11066 | void unsafe_arena_set_allocated_cross_replica_sum_request( |
| 11067 | ::xla::CrossReplicaSumRequest* cross_replica_sum_request); |
| 11068 | ::xla::CrossReplicaSumRequest* unsafe_arena_release_cross_replica_sum_request(); |
| 11069 | |
| 11070 | // .xla.CustomCallRequest custom_call_request = 10; |
| 11071 | bool has_custom_call_request() const; |
| 11072 | void clear_custom_call_request(); |
| 11073 | static const int kCustomCallRequestFieldNumber = 10; |
| 11074 | const ::xla::CustomCallRequest& custom_call_request() const; |
| 11075 | ::xla::CustomCallRequest* release_custom_call_request(); |
| 11076 | ::xla::CustomCallRequest* mutable_custom_call_request(); |
| 11077 | void set_allocated_custom_call_request(::xla::CustomCallRequest* custom_call_request); |
| 11078 | void unsafe_arena_set_allocated_custom_call_request( |
| 11079 | ::xla::CustomCallRequest* custom_call_request); |
| 11080 | ::xla::CustomCallRequest* unsafe_arena_release_custom_call_request(); |
| 11081 | |
| 11082 | // .xla.DotRequest dot_request = 43; |
| 11083 | bool has_dot_request() const; |
| 11084 | void clear_dot_request(); |
| 11085 | static const int kDotRequestFieldNumber = 43; |
| 11086 | const ::xla::DotRequest& dot_request() const; |
| 11087 | ::xla::DotRequest* release_dot_request(); |
| 11088 | ::xla::DotRequest* mutable_dot_request(); |
| 11089 | void set_allocated_dot_request(::xla::DotRequest* dot_request); |
| 11090 | void unsafe_arena_set_allocated_dot_request( |
| 11091 | ::xla::DotRequest* dot_request); |
| 11092 | ::xla::DotRequest* unsafe_arena_release_dot_request(); |
| 11093 | |
| 11094 | // .xla.DynamicSliceRequest dynamic_slice_request = 11; |
| 11095 | bool has_dynamic_slice_request() const; |
| 11096 | void clear_dynamic_slice_request(); |
| 11097 | static const int kDynamicSliceRequestFieldNumber = 11; |
| 11098 | const ::xla::DynamicSliceRequest& dynamic_slice_request() const; |
| 11099 | ::xla::DynamicSliceRequest* release_dynamic_slice_request(); |
| 11100 | ::xla::DynamicSliceRequest* mutable_dynamic_slice_request(); |
| 11101 | void set_allocated_dynamic_slice_request(::xla::DynamicSliceRequest* dynamic_slice_request); |
| 11102 | void unsafe_arena_set_allocated_dynamic_slice_request( |
| 11103 | ::xla::DynamicSliceRequest* dynamic_slice_request); |
| 11104 | ::xla::DynamicSliceRequest* unsafe_arena_release_dynamic_slice_request(); |
| 11105 | |
| 11106 | // .xla.DynamicUpdateSliceRequest dynamic_update_slice_request = 12; |
| 11107 | bool has_dynamic_update_slice_request() const; |
| 11108 | void clear_dynamic_update_slice_request(); |
| 11109 | static const int kDynamicUpdateSliceRequestFieldNumber = 12; |
| 11110 | const ::xla::DynamicUpdateSliceRequest& dynamic_update_slice_request() const; |
| 11111 | ::xla::DynamicUpdateSliceRequest* release_dynamic_update_slice_request(); |
| 11112 | ::xla::DynamicUpdateSliceRequest* mutable_dynamic_update_slice_request(); |
| 11113 | void set_allocated_dynamic_update_slice_request(::xla::DynamicUpdateSliceRequest* dynamic_update_slice_request); |
| 11114 | void unsafe_arena_set_allocated_dynamic_update_slice_request( |
| 11115 | ::xla::DynamicUpdateSliceRequest* dynamic_update_slice_request); |
| 11116 | ::xla::DynamicUpdateSliceRequest* unsafe_arena_release_dynamic_update_slice_request(); |
| 11117 | |
| 11118 | // .xla.GetTupleElementRequest get_tuple_element_request = 13; |
| 11119 | bool has_get_tuple_element_request() const; |
| 11120 | void clear_get_tuple_element_request(); |
| 11121 | static const int kGetTupleElementRequestFieldNumber = 13; |
| 11122 | const ::xla::GetTupleElementRequest& get_tuple_element_request() const; |
| 11123 | ::xla::GetTupleElementRequest* release_get_tuple_element_request(); |
| 11124 | ::xla::GetTupleElementRequest* mutable_get_tuple_element_request(); |
| 11125 | void set_allocated_get_tuple_element_request(::xla::GetTupleElementRequest* get_tuple_element_request); |
| 11126 | void unsafe_arena_set_allocated_get_tuple_element_request( |
| 11127 | ::xla::GetTupleElementRequest* get_tuple_element_request); |
| 11128 | ::xla::GetTupleElementRequest* unsafe_arena_release_get_tuple_element_request(); |
| 11129 | |
| 11130 | // .xla.InfeedRequest infeed_request = 14; |
| 11131 | bool has_infeed_request() const; |
| 11132 | void clear_infeed_request(); |
| 11133 | static const int kInfeedRequestFieldNumber = 14; |
| 11134 | const ::xla::InfeedRequest& infeed_request() const; |
| 11135 | ::xla::InfeedRequest* release_infeed_request(); |
| 11136 | ::xla::InfeedRequest* mutable_infeed_request(); |
| 11137 | void set_allocated_infeed_request(::xla::InfeedRequest* infeed_request); |
| 11138 | void unsafe_arena_set_allocated_infeed_request( |
| 11139 | ::xla::InfeedRequest* infeed_request); |
| 11140 | ::xla::InfeedRequest* unsafe_arena_release_infeed_request(); |
| 11141 | |
| 11142 | // .xla.MapRequest map_request = 15; |
| 11143 | bool has_map_request() const; |
| 11144 | void clear_map_request(); |
| 11145 | static const int kMapRequestFieldNumber = 15; |
| 11146 | const ::xla::MapRequest& map_request() const; |
| 11147 | ::xla::MapRequest* release_map_request(); |
| 11148 | ::xla::MapRequest* mutable_map_request(); |
| 11149 | void set_allocated_map_request(::xla::MapRequest* map_request); |
| 11150 | void unsafe_arena_set_allocated_map_request( |
| 11151 | ::xla::MapRequest* map_request); |
| 11152 | ::xla::MapRequest* unsafe_arena_release_map_request(); |
| 11153 | |
| 11154 | // .xla.PadRequest pad_request = 16; |
| 11155 | bool has_pad_request() const; |
| 11156 | void clear_pad_request(); |
| 11157 | static const int kPadRequestFieldNumber = 16; |
| 11158 | const ::xla::PadRequest& pad_request() const; |
| 11159 | ::xla::PadRequest* release_pad_request(); |
| 11160 | ::xla::PadRequest* mutable_pad_request(); |
| 11161 | void set_allocated_pad_request(::xla::PadRequest* pad_request); |
| 11162 | void unsafe_arena_set_allocated_pad_request( |
| 11163 | ::xla::PadRequest* pad_request); |
| 11164 | ::xla::PadRequest* unsafe_arena_release_pad_request(); |
| 11165 | |
| 11166 | // .xla.ParameterRequest parameter_request = 17; |
| 11167 | bool has_parameter_request() const; |
| 11168 | void clear_parameter_request(); |
| 11169 | static const int kParameterRequestFieldNumber = 17; |
| 11170 | const ::xla::ParameterRequest& parameter_request() const; |
| 11171 | ::xla::ParameterRequest* release_parameter_request(); |
| 11172 | ::xla::ParameterRequest* mutable_parameter_request(); |
| 11173 | void set_allocated_parameter_request(::xla::ParameterRequest* parameter_request); |
| 11174 | void unsafe_arena_set_allocated_parameter_request( |
| 11175 | ::xla::ParameterRequest* parameter_request); |
| 11176 | ::xla::ParameterRequest* unsafe_arena_release_parameter_request(); |
| 11177 | |
| 11178 | // .xla.ReducePrecisionRequest reduce_precision_request = 36; |
| 11179 | bool has_reduce_precision_request() const; |
| 11180 | void clear_reduce_precision_request(); |
| 11181 | static const int kReducePrecisionRequestFieldNumber = 36; |
| 11182 | const ::xla::ReducePrecisionRequest& reduce_precision_request() const; |
| 11183 | ::xla::ReducePrecisionRequest* release_reduce_precision_request(); |
| 11184 | ::xla::ReducePrecisionRequest* mutable_reduce_precision_request(); |
| 11185 | void set_allocated_reduce_precision_request(::xla::ReducePrecisionRequest* reduce_precision_request); |
| 11186 | void unsafe_arena_set_allocated_reduce_precision_request( |
| 11187 | ::xla::ReducePrecisionRequest* reduce_precision_request); |
| 11188 | ::xla::ReducePrecisionRequest* unsafe_arena_release_reduce_precision_request(); |
| 11189 | |
| 11190 | // .xla.ReduceRequest reduce_request = 18; |
| 11191 | bool has_reduce_request() const; |
| 11192 | void clear_reduce_request(); |
| 11193 | static const int kReduceRequestFieldNumber = 18; |
| 11194 | const ::xla::ReduceRequest& reduce_request() const; |
| 11195 | ::xla::ReduceRequest* release_reduce_request(); |
| 11196 | ::xla::ReduceRequest* mutable_reduce_request(); |
| 11197 | void set_allocated_reduce_request(::xla::ReduceRequest* reduce_request); |
| 11198 | void unsafe_arena_set_allocated_reduce_request( |
| 11199 | ::xla::ReduceRequest* reduce_request); |
| 11200 | ::xla::ReduceRequest* unsafe_arena_release_reduce_request(); |
| 11201 | |
| 11202 | // .xla.ReduceWindowRequest reduce_window_request = 19; |
| 11203 | bool has_reduce_window_request() const; |
| 11204 | void clear_reduce_window_request(); |
| 11205 | static const int kReduceWindowRequestFieldNumber = 19; |
| 11206 | const ::xla::ReduceWindowRequest& reduce_window_request() const; |
| 11207 | ::xla::ReduceWindowRequest* release_reduce_window_request(); |
| 11208 | ::xla::ReduceWindowRequest* mutable_reduce_window_request(); |
| 11209 | void set_allocated_reduce_window_request(::xla::ReduceWindowRequest* reduce_window_request); |
| 11210 | void unsafe_arena_set_allocated_reduce_window_request( |
| 11211 | ::xla::ReduceWindowRequest* reduce_window_request); |
| 11212 | ::xla::ReduceWindowRequest* unsafe_arena_release_reduce_window_request(); |
| 11213 | |
| 11214 | // .xla.ReshapeRequest reshape_request = 20; |
| 11215 | bool has_reshape_request() const; |
| 11216 | void clear_reshape_request(); |
| 11217 | static const int kReshapeRequestFieldNumber = 20; |
| 11218 | const ::xla::ReshapeRequest& reshape_request() const; |
| 11219 | ::xla::ReshapeRequest* release_reshape_request(); |
| 11220 | ::xla::ReshapeRequest* mutable_reshape_request(); |
| 11221 | void set_allocated_reshape_request(::xla::ReshapeRequest* reshape_request); |
| 11222 | void unsafe_arena_set_allocated_reshape_request( |
| 11223 | ::xla::ReshapeRequest* reshape_request); |
| 11224 | ::xla::ReshapeRequest* unsafe_arena_release_reshape_request(); |
| 11225 | |
| 11226 | // .xla.ReverseRequest reverse_request = 21; |
| 11227 | bool has_reverse_request() const; |
| 11228 | void clear_reverse_request(); |
| 11229 | static const int kReverseRequestFieldNumber = 21; |
| 11230 | const ::xla::ReverseRequest& reverse_request() const; |
| 11231 | ::xla::ReverseRequest* release_reverse_request(); |
| 11232 | ::xla::ReverseRequest* mutable_reverse_request(); |
| 11233 | void set_allocated_reverse_request(::xla::ReverseRequest* reverse_request); |
| 11234 | void unsafe_arena_set_allocated_reverse_request( |
| 11235 | ::xla::ReverseRequest* reverse_request); |
| 11236 | ::xla::ReverseRequest* unsafe_arena_release_reverse_request(); |
| 11237 | |
| 11238 | // .xla.RngRequest rng_request = 22; |
| 11239 | bool has_rng_request() const; |
| 11240 | void clear_rng_request(); |
| 11241 | static const int kRngRequestFieldNumber = 22; |
| 11242 | const ::xla::RngRequest& rng_request() const; |
| 11243 | ::xla::RngRequest* release_rng_request(); |
| 11244 | ::xla::RngRequest* mutable_rng_request(); |
| 11245 | void set_allocated_rng_request(::xla::RngRequest* rng_request); |
| 11246 | void unsafe_arena_set_allocated_rng_request( |
| 11247 | ::xla::RngRequest* rng_request); |
| 11248 | ::xla::RngRequest* unsafe_arena_release_rng_request(); |
| 11249 | |
| 11250 | // .xla.SelectAndScatterRequest select_and_scatter_request = 23; |
| 11251 | bool has_select_and_scatter_request() const; |
| 11252 | void clear_select_and_scatter_request(); |
| 11253 | static const int kSelectAndScatterRequestFieldNumber = 23; |
| 11254 | const ::xla::SelectAndScatterRequest& select_and_scatter_request() const; |
| 11255 | ::xla::SelectAndScatterRequest* release_select_and_scatter_request(); |
| 11256 | ::xla::SelectAndScatterRequest* mutable_select_and_scatter_request(); |
| 11257 | void set_allocated_select_and_scatter_request(::xla::SelectAndScatterRequest* select_and_scatter_request); |
| 11258 | void unsafe_arena_set_allocated_select_and_scatter_request( |
| 11259 | ::xla::SelectAndScatterRequest* select_and_scatter_request); |
| 11260 | ::xla::SelectAndScatterRequest* unsafe_arena_release_select_and_scatter_request(); |
| 11261 | |
| 11262 | // .xla.SliceRequest slice_request = 24; |
| 11263 | bool has_slice_request() const; |
| 11264 | void clear_slice_request(); |
| 11265 | static const int kSliceRequestFieldNumber = 24; |
| 11266 | const ::xla::SliceRequest& slice_request() const; |
| 11267 | ::xla::SliceRequest* release_slice_request(); |
| 11268 | ::xla::SliceRequest* mutable_slice_request(); |
| 11269 | void set_allocated_slice_request(::xla::SliceRequest* slice_request); |
| 11270 | void unsafe_arena_set_allocated_slice_request( |
| 11271 | ::xla::SliceRequest* slice_request); |
| 11272 | ::xla::SliceRequest* unsafe_arena_release_slice_request(); |
| 11273 | |
| 11274 | // .xla.TernaryOpRequest ternary_op_request = 25; |
| 11275 | bool has_ternary_op_request() const; |
| 11276 | void clear_ternary_op_request(); |
| 11277 | static const int kTernaryOpRequestFieldNumber = 25; |
| 11278 | const ::xla::TernaryOpRequest& ternary_op_request() const; |
| 11279 | ::xla::TernaryOpRequest* release_ternary_op_request(); |
| 11280 | ::xla::TernaryOpRequest* mutable_ternary_op_request(); |
| 11281 | void set_allocated_ternary_op_request(::xla::TernaryOpRequest* ternary_op_request); |
| 11282 | void unsafe_arena_set_allocated_ternary_op_request( |
| 11283 | ::xla::TernaryOpRequest* ternary_op_request); |
| 11284 | ::xla::TernaryOpRequest* unsafe_arena_release_ternary_op_request(); |
| 11285 | |
| 11286 | // .xla.TraceRequest trace_request = 26; |
| 11287 | bool has_trace_request() const; |
| 11288 | void clear_trace_request(); |
| 11289 | static const int kTraceRequestFieldNumber = 26; |
| 11290 | const ::xla::TraceRequest& trace_request() const; |
| 11291 | ::xla::TraceRequest* release_trace_request(); |
| 11292 | ::xla::TraceRequest* mutable_trace_request(); |
| 11293 | void set_allocated_trace_request(::xla::TraceRequest* trace_request); |
| 11294 | void unsafe_arena_set_allocated_trace_request( |
| 11295 | ::xla::TraceRequest* trace_request); |
| 11296 | ::xla::TraceRequest* unsafe_arena_release_trace_request(); |
| 11297 | |
| 11298 | // .xla.TransposeRequest transpose_request = 34; |
| 11299 | bool has_transpose_request() const; |
| 11300 | void clear_transpose_request(); |
| 11301 | static const int kTransposeRequestFieldNumber = 34; |
| 11302 | const ::xla::TransposeRequest& transpose_request() const; |
| 11303 | ::xla::TransposeRequest* release_transpose_request(); |
| 11304 | ::xla::TransposeRequest* mutable_transpose_request(); |
| 11305 | void set_allocated_transpose_request(::xla::TransposeRequest* transpose_request); |
| 11306 | void unsafe_arena_set_allocated_transpose_request( |
| 11307 | ::xla::TransposeRequest* transpose_request); |
| 11308 | ::xla::TransposeRequest* unsafe_arena_release_transpose_request(); |
| 11309 | |
| 11310 | // .xla.UnaryOpRequest unary_op_request = 27; |
| 11311 | bool has_unary_op_request() const; |
| 11312 | void clear_unary_op_request(); |
| 11313 | static const int kUnaryOpRequestFieldNumber = 27; |
| 11314 | const ::xla::UnaryOpRequest& unary_op_request() const; |
| 11315 | ::xla::UnaryOpRequest* release_unary_op_request(); |
| 11316 | ::xla::UnaryOpRequest* mutable_unary_op_request(); |
| 11317 | void set_allocated_unary_op_request(::xla::UnaryOpRequest* unary_op_request); |
| 11318 | void unsafe_arena_set_allocated_unary_op_request( |
| 11319 | ::xla::UnaryOpRequest* unary_op_request); |
| 11320 | ::xla::UnaryOpRequest* unsafe_arena_release_unary_op_request(); |
| 11321 | |
| 11322 | // .xla.VariadicOpRequest variadic_op_request = 28; |
| 11323 | bool has_variadic_op_request() const; |
| 11324 | void clear_variadic_op_request(); |
| 11325 | static const int kVariadicOpRequestFieldNumber = 28; |
| 11326 | const ::xla::VariadicOpRequest& variadic_op_request() const; |
| 11327 | ::xla::VariadicOpRequest* release_variadic_op_request(); |
| 11328 | ::xla::VariadicOpRequest* mutable_variadic_op_request(); |
| 11329 | void set_allocated_variadic_op_request(::xla::VariadicOpRequest* variadic_op_request); |
| 11330 | void unsafe_arena_set_allocated_variadic_op_request( |
| 11331 | ::xla::VariadicOpRequest* variadic_op_request); |
| 11332 | ::xla::VariadicOpRequest* unsafe_arena_release_variadic_op_request(); |
| 11333 | |
| 11334 | // .xla.WhileRequest while_request = 29; |
| 11335 | bool has_while_request() const; |
| 11336 | void clear_while_request(); |
| 11337 | static const int kWhileRequestFieldNumber = 29; |
| 11338 | const ::xla::WhileRequest& while_request() const; |
| 11339 | ::xla::WhileRequest* release_while_request(); |
| 11340 | ::xla::WhileRequest* mutable_while_request(); |
| 11341 | void set_allocated_while_request(::xla::WhileRequest* while_request); |
| 11342 | void unsafe_arena_set_allocated_while_request( |
| 11343 | ::xla::WhileRequest* while_request); |
| 11344 | ::xla::WhileRequest* unsafe_arena_release_while_request(); |
| 11345 | |
| 11346 | // .xla.SendRequest send_request = 30; |
| 11347 | bool has_send_request() const; |
| 11348 | void clear_send_request(); |
| 11349 | static const int kSendRequestFieldNumber = 30; |
| 11350 | const ::xla::SendRequest& send_request() const; |
| 11351 | ::xla::SendRequest* release_send_request(); |
| 11352 | ::xla::SendRequest* mutable_send_request(); |
| 11353 | void set_allocated_send_request(::xla::SendRequest* send_request); |
| 11354 | void unsafe_arena_set_allocated_send_request( |
| 11355 | ::xla::SendRequest* send_request); |
| 11356 | ::xla::SendRequest* unsafe_arena_release_send_request(); |
| 11357 | |
| 11358 | // .xla.RecvRequest recv_request = 31; |
| 11359 | bool has_recv_request() const; |
| 11360 | void clear_recv_request(); |
| 11361 | static const int kRecvRequestFieldNumber = 31; |
| 11362 | const ::xla::RecvRequest& recv_request() const; |
| 11363 | ::xla::RecvRequest* release_recv_request(); |
| 11364 | ::xla::RecvRequest* mutable_recv_request(); |
| 11365 | void set_allocated_recv_request(::xla::RecvRequest* recv_request); |
| 11366 | void unsafe_arena_set_allocated_recv_request( |
| 11367 | ::xla::RecvRequest* recv_request); |
| 11368 | ::xla::RecvRequest* unsafe_arena_release_recv_request(); |
| 11369 | |
| 11370 | // .xla.OutfeedRequest outfeed_request = 32; |
| 11371 | bool has_outfeed_request() const; |
| 11372 | void clear_outfeed_request(); |
| 11373 | static const int kOutfeedRequestFieldNumber = 32; |
| 11374 | const ::xla::OutfeedRequest& outfeed_request() const; |
| 11375 | ::xla::OutfeedRequest* release_outfeed_request(); |
| 11376 | ::xla::OutfeedRequest* mutable_outfeed_request(); |
| 11377 | void set_allocated_outfeed_request(::xla::OutfeedRequest* outfeed_request); |
| 11378 | void unsafe_arena_set_allocated_outfeed_request( |
| 11379 | ::xla::OutfeedRequest* outfeed_request); |
| 11380 | ::xla::OutfeedRequest* unsafe_arena_release_outfeed_request(); |
| 11381 | |
| 11382 | // .xla.BatchNormTrainingRequest batch_norm_training_request = 35; |
| 11383 | bool has_batch_norm_training_request() const; |
| 11384 | void clear_batch_norm_training_request(); |
| 11385 | static const int kBatchNormTrainingRequestFieldNumber = 35; |
| 11386 | const ::xla::BatchNormTrainingRequest& batch_norm_training_request() const; |
| 11387 | ::xla::BatchNormTrainingRequest* release_batch_norm_training_request(); |
| 11388 | ::xla::BatchNormTrainingRequest* mutable_batch_norm_training_request(); |
| 11389 | void set_allocated_batch_norm_training_request(::xla::BatchNormTrainingRequest* batch_norm_training_request); |
| 11390 | void unsafe_arena_set_allocated_batch_norm_training_request( |
| 11391 | ::xla::BatchNormTrainingRequest* batch_norm_training_request); |
| 11392 | ::xla::BatchNormTrainingRequest* unsafe_arena_release_batch_norm_training_request(); |
| 11393 | |
| 11394 | // .xla.BatchNormGradRequest batch_norm_grad_request = 37; |
| 11395 | bool has_batch_norm_grad_request() const; |
| 11396 | void clear_batch_norm_grad_request(); |
| 11397 | static const int kBatchNormGradRequestFieldNumber = 37; |
| 11398 | const ::xla::BatchNormGradRequest& batch_norm_grad_request() const; |
| 11399 | ::xla::BatchNormGradRequest* release_batch_norm_grad_request(); |
| 11400 | ::xla::BatchNormGradRequest* mutable_batch_norm_grad_request(); |
| 11401 | void set_allocated_batch_norm_grad_request(::xla::BatchNormGradRequest* batch_norm_grad_request); |
| 11402 | void unsafe_arena_set_allocated_batch_norm_grad_request( |
| 11403 | ::xla::BatchNormGradRequest* batch_norm_grad_request); |
| 11404 | ::xla::BatchNormGradRequest* unsafe_arena_release_batch_norm_grad_request(); |
| 11405 | |
| 11406 | // .xla.BatchNormInferenceRequest batch_norm_inference_request = 38; |
| 11407 | bool has_batch_norm_inference_request() const; |
| 11408 | void clear_batch_norm_inference_request(); |
| 11409 | static const int kBatchNormInferenceRequestFieldNumber = 38; |
| 11410 | const ::xla::BatchNormInferenceRequest& batch_norm_inference_request() const; |
| 11411 | ::xla::BatchNormInferenceRequest* release_batch_norm_inference_request(); |
| 11412 | ::xla::BatchNormInferenceRequest* mutable_batch_norm_inference_request(); |
| 11413 | void set_allocated_batch_norm_inference_request(::xla::BatchNormInferenceRequest* batch_norm_inference_request); |
| 11414 | void unsafe_arena_set_allocated_batch_norm_inference_request( |
| 11415 | ::xla::BatchNormInferenceRequest* batch_norm_inference_request); |
| 11416 | ::xla::BatchNormInferenceRequest* unsafe_arena_release_batch_norm_inference_request(); |
| 11417 | |
| 11418 | // .xla.FftRequest fft_request = 41; |
| 11419 | bool has_fft_request() const; |
| 11420 | void clear_fft_request(); |
| 11421 | static const int kFftRequestFieldNumber = 41; |
| 11422 | const ::xla::FftRequest& fft_request() const; |
| 11423 | ::xla::FftRequest* release_fft_request(); |
| 11424 | ::xla::FftRequest* mutable_fft_request(); |
| 11425 | void set_allocated_fft_request(::xla::FftRequest* fft_request); |
| 11426 | void unsafe_arena_set_allocated_fft_request( |
| 11427 | ::xla::FftRequest* fft_request); |
| 11428 | ::xla::FftRequest* unsafe_arena_release_fft_request(); |
| 11429 | |
| 11430 | // .xla.ConvertRequest bitcast_convert_request = 42; |
| 11431 | bool has_bitcast_convert_request() const; |
| 11432 | void clear_bitcast_convert_request(); |
| 11433 | static const int kBitcastConvertRequestFieldNumber = 42; |
| 11434 | const ::xla::ConvertRequest& bitcast_convert_request() const; |
| 11435 | ::xla::ConvertRequest* release_bitcast_convert_request(); |
| 11436 | ::xla::ConvertRequest* mutable_bitcast_convert_request(); |
| 11437 | void set_allocated_bitcast_convert_request(::xla::ConvertRequest* bitcast_convert_request); |
| 11438 | void unsafe_arena_set_allocated_bitcast_convert_request( |
| 11439 | ::xla::ConvertRequest* bitcast_convert_request); |
| 11440 | ::xla::ConvertRequest* unsafe_arena_release_bitcast_convert_request(); |
| 11441 | |
| 11442 | // .xla.ConditionalRequest conditional_request = 44; |
| 11443 | bool has_conditional_request() const; |
| 11444 | void clear_conditional_request(); |
| 11445 | static const int kConditionalRequestFieldNumber = 44; |
| 11446 | const ::xla::ConditionalRequest& conditional_request() const; |
| 11447 | ::xla::ConditionalRequest* release_conditional_request(); |
| 11448 | ::xla::ConditionalRequest* mutable_conditional_request(); |
| 11449 | void set_allocated_conditional_request(::xla::ConditionalRequest* conditional_request); |
| 11450 | void unsafe_arena_set_allocated_conditional_request( |
| 11451 | ::xla::ConditionalRequest* conditional_request); |
| 11452 | ::xla::ConditionalRequest* unsafe_arena_release_conditional_request(); |
| 11453 | |
| 11454 | // .xla.HostComputeRequest host_compute_request = 45; |
| 11455 | bool has_host_compute_request() const; |
| 11456 | void clear_host_compute_request(); |
| 11457 | static const int kHostComputeRequestFieldNumber = 45; |
| 11458 | const ::xla::HostComputeRequest& host_compute_request() const; |
| 11459 | ::xla::HostComputeRequest* release_host_compute_request(); |
| 11460 | ::xla::HostComputeRequest* mutable_host_compute_request(); |
| 11461 | void set_allocated_host_compute_request(::xla::HostComputeRequest* host_compute_request); |
| 11462 | void unsafe_arena_set_allocated_host_compute_request( |
| 11463 | ::xla::HostComputeRequest* host_compute_request); |
| 11464 | ::xla::HostComputeRequest* unsafe_arena_release_host_compute_request(); |
| 11465 | |
| 11466 | // .xla.GatherRequest gather_request = 46; |
| 11467 | bool has_gather_request() const; |
| 11468 | void clear_gather_request(); |
| 11469 | static const int kGatherRequestFieldNumber = 46; |
| 11470 | const ::xla::GatherRequest& gather_request() const; |
| 11471 | ::xla::GatherRequest* release_gather_request(); |
| 11472 | ::xla::GatherRequest* mutable_gather_request(); |
| 11473 | void set_allocated_gather_request(::xla::GatherRequest* gather_request); |
| 11474 | void unsafe_arena_set_allocated_gather_request( |
| 11475 | ::xla::GatherRequest* gather_request); |
| 11476 | ::xla::GatherRequest* unsafe_arena_release_gather_request(); |
| 11477 | |
| 11478 | OpCase op_case() const; |
| 11479 | // @@protoc_insertion_point(class_scope:xla.OpRequest) |
| 11480 | private: |
| 11481 | void set_has_binary_op_request(); |
| 11482 | void set_has_broadcast_request(); |
| 11483 | void set_has_call_request(); |
| 11484 | void set_has_concatenate_request(); |
| 11485 | void set_has_constant_request(); |
| 11486 | void set_has_convert_request(); |
| 11487 | void set_has_convolve_request(); |
| 11488 | void set_has_cross_replica_sum_request(); |
| 11489 | void set_has_custom_call_request(); |
| 11490 | void set_has_dot_request(); |
| 11491 | void set_has_dynamic_slice_request(); |
| 11492 | void set_has_dynamic_update_slice_request(); |
| 11493 | void set_has_get_tuple_element_request(); |
| 11494 | void set_has_infeed_request(); |
| 11495 | void set_has_map_request(); |
| 11496 | void set_has_pad_request(); |
| 11497 | void set_has_parameter_request(); |
| 11498 | void set_has_reduce_precision_request(); |
| 11499 | void set_has_reduce_request(); |
| 11500 | void set_has_reduce_window_request(); |
| 11501 | void set_has_reshape_request(); |
| 11502 | void set_has_reverse_request(); |
| 11503 | void set_has_rng_request(); |
| 11504 | void set_has_select_and_scatter_request(); |
| 11505 | void set_has_slice_request(); |
| 11506 | void set_has_ternary_op_request(); |
| 11507 | void set_has_trace_request(); |
| 11508 | void set_has_transpose_request(); |
| 11509 | void set_has_unary_op_request(); |
| 11510 | void set_has_variadic_op_request(); |
| 11511 | void set_has_while_request(); |
| 11512 | void set_has_send_request(); |
| 11513 | void set_has_recv_request(); |
| 11514 | void set_has_outfeed_request(); |
| 11515 | void set_has_batch_norm_training_request(); |
| 11516 | void set_has_batch_norm_grad_request(); |
| 11517 | void set_has_batch_norm_inference_request(); |
| 11518 | void set_has_fft_request(); |
| 11519 | void set_has_bitcast_convert_request(); |
| 11520 | void set_has_conditional_request(); |
| 11521 | void set_has_host_compute_request(); |
| 11522 | void set_has_gather_request(); |
| 11523 | |
| 11524 | inline bool has_op() const; |
| 11525 | void clear_op(); |
| 11526 | inline void clear_has_op(); |
| 11527 | |
| 11528 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 11529 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 11530 | typedef void InternalArenaConstructable_; |
| 11531 | typedef void DestructorSkippable_; |
| 11532 | ::xla::ComputationHandle* computation_; |
| 11533 | ::xla::OpMetadata* metadata_; |
| 11534 | ::xla::OpSharding* sharding_; |
| 11535 | union OpUnion { |
| 11536 | OpUnion() {} |
| 11537 | ::xla::BinaryOpRequest* binary_op_request_; |
| 11538 | ::xla::BroadcastRequest* broadcast_request_; |
| 11539 | ::xla::CallRequest* call_request_; |
| 11540 | ::xla::ConcatenateRequest* concatenate_request_; |
| 11541 | ::xla::ConstantRequest* constant_request_; |
| 11542 | ::xla::ConvertRequest* convert_request_; |
| 11543 | ::xla::ConvolveRequest* convolve_request_; |
| 11544 | ::xla::CrossReplicaSumRequest* cross_replica_sum_request_; |
| 11545 | ::xla::CustomCallRequest* custom_call_request_; |
| 11546 | ::xla::DotRequest* dot_request_; |
| 11547 | ::xla::DynamicSliceRequest* dynamic_slice_request_; |
| 11548 | ::xla::DynamicUpdateSliceRequest* dynamic_update_slice_request_; |
| 11549 | ::xla::GetTupleElementRequest* get_tuple_element_request_; |
| 11550 | ::xla::InfeedRequest* infeed_request_; |
| 11551 | ::xla::MapRequest* map_request_; |
| 11552 | ::xla::PadRequest* pad_request_; |
| 11553 | ::xla::ParameterRequest* parameter_request_; |
| 11554 | ::xla::ReducePrecisionRequest* reduce_precision_request_; |
| 11555 | ::xla::ReduceRequest* reduce_request_; |
| 11556 | ::xla::ReduceWindowRequest* reduce_window_request_; |
| 11557 | ::xla::ReshapeRequest* reshape_request_; |
| 11558 | ::xla::ReverseRequest* reverse_request_; |
| 11559 | ::xla::RngRequest* rng_request_; |
| 11560 | ::xla::SelectAndScatterRequest* select_and_scatter_request_; |
| 11561 | ::xla::SliceRequest* slice_request_; |
| 11562 | ::xla::TernaryOpRequest* ternary_op_request_; |
| 11563 | ::xla::TraceRequest* trace_request_; |
| 11564 | ::xla::TransposeRequest* transpose_request_; |
| 11565 | ::xla::UnaryOpRequest* unary_op_request_; |
| 11566 | ::xla::VariadicOpRequest* variadic_op_request_; |
| 11567 | ::xla::WhileRequest* while_request_; |
| 11568 | ::xla::SendRequest* send_request_; |
| 11569 | ::xla::RecvRequest* recv_request_; |
| 11570 | ::xla::OutfeedRequest* outfeed_request_; |
| 11571 | ::xla::BatchNormTrainingRequest* batch_norm_training_request_; |
| 11572 | ::xla::BatchNormGradRequest* batch_norm_grad_request_; |
| 11573 | ::xla::BatchNormInferenceRequest* batch_norm_inference_request_; |
| 11574 | ::xla::FftRequest* fft_request_; |
| 11575 | ::xla::ConvertRequest* bitcast_convert_request_; |
| 11576 | ::xla::ConditionalRequest* conditional_request_; |
| 11577 | ::xla::HostComputeRequest* host_compute_request_; |
| 11578 | ::xla::GatherRequest* gather_request_; |
| 11579 | } op_; |
| 11580 | mutable int _cached_size_; |
| 11581 | ::google::protobuf::uint32 _oneof_case_[1]; |
| 11582 | |
| 11583 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 11584 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsOpRequestImpl(); |
| 11585 | }; |
| 11586 | // ------------------------------------------------------------------- |
| 11587 | |
| 11588 | class OpResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OpResponse) */ { |
| 11589 | public: |
| 11590 | OpResponse(); |
| 11591 | virtual ~OpResponse(); |
| 11592 | |
| 11593 | OpResponse(const OpResponse& from); |
| 11594 | |
| 11595 | inline OpResponse& operator=(const OpResponse& from) { |
| 11596 | CopyFrom(from); |
| 11597 | return *this; |
| 11598 | } |
| 11599 | #if LANG_CXX11 |
| 11600 | OpResponse(OpResponse&& from) noexcept |
| 11601 | : OpResponse() { |
| 11602 | *this = ::std::move(from); |
| 11603 | } |
| 11604 | |
| 11605 | inline OpResponse& operator=(OpResponse&& from) noexcept { |
| 11606 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 11607 | if (this != &from) InternalSwap(&from); |
| 11608 | } else { |
| 11609 | CopyFrom(from); |
| 11610 | } |
| 11611 | return *this; |
| 11612 | } |
| 11613 | #endif |
| 11614 | inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 11615 | return GetArenaNoVirtual(); |
| 11616 | } |
| 11617 | inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 11618 | return MaybeArenaPtr(); |
| 11619 | } |
| 11620 | static const ::google::protobuf::Descriptor* descriptor(); |
| 11621 | static const OpResponse& default_instance(); |
| 11622 | |
| 11623 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 11624 | static inline const OpResponse* internal_default_instance() { |
| 11625 | return reinterpret_cast<const OpResponse*>( |
| 11626 | &_OpResponse_default_instance_); |
| 11627 | } |
| 11628 | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
| 11629 | 67; |
| 11630 | |
| 11631 | void UnsafeArenaSwap(OpResponse* other); |
| 11632 | void Swap(OpResponse* other); |
| 11633 | friend void swap(OpResponse& a, OpResponse& b) { |
| 11634 | a.Swap(&b); |
| 11635 | } |
| 11636 | |
| 11637 | // implements Message ---------------------------------------------- |
| 11638 | |
| 11639 | inline OpResponse* New() const PROTOBUF_FINAL { |
| 11640 | return ::google::protobuf::Arena::CreateMessage<OpResponse>(NULL); |
| 11641 | } |
| 11642 | |
| 11643 | OpResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL { |
| 11644 | return ::google::protobuf::Arena::CreateMessage<OpResponse>(arena); |
| 11645 | } |
| 11646 | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 11647 | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 11648 | void CopyFrom(const OpResponse& from); |
| 11649 | void MergeFrom(const OpResponse& from); |
| 11650 | void Clear() PROTOBUF_FINAL; |
| 11651 | bool IsInitialized() const PROTOBUF_FINAL; |
| 11652 | |
| 11653 | size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 11654 | bool MergePartialFromCodedStream( |
| 11655 | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 11656 | void SerializeWithCachedSizes( |
| 11657 | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 11658 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 11659 | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
| 11660 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 11661 | private: |
| 11662 | void SharedCtor(); |
| 11663 | void SharedDtor(); |
| 11664 | void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 11665 | void InternalSwap(OpResponse* other); |
| 11666 | protected: |
| 11667 | explicit OpResponse(::google::protobuf::Arena* arena); |
| 11668 | private: |
| 11669 | static void ArenaDtor(void* object); |
| 11670 | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 11671 | private: |
| 11672 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 11673 | return _internal_metadata_.arena(); |
| 11674 | } |
| 11675 | inline void* MaybeArenaPtr() const { |
| 11676 | return _internal_metadata_.raw_arena_ptr(); |
| 11677 | } |
| 11678 | public: |
| 11679 | |
| 11680 | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 11681 | |
| 11682 | // nested types ---------------------------------------------------- |
| 11683 | |
| 11684 | // accessors ------------------------------------------------------- |
| 11685 | |
| 11686 | // .xla.ComputationDataHandle output = 1; |
| 11687 | bool has_output() const; |
| 11688 | void clear_output(); |
| 11689 | static const int kOutputFieldNumber = 1; |
| 11690 | const ::xla::ComputationDataHandle& output() const; |
| 11691 | ::xla::ComputationDataHandle* release_output(); |
| 11692 | ::xla::ComputationDataHandle* mutable_output(); |
| 11693 | void set_allocated_output(::xla::ComputationDataHandle* output); |
| 11694 | void unsafe_arena_set_allocated_output( |
| 11695 | ::xla::ComputationDataHandle* output); |
| 11696 | ::xla::ComputationDataHandle* unsafe_arena_release_output(); |
| 11697 | |
| 11698 | // @@protoc_insertion_point(class_scope:xla.OpResponse) |
| 11699 | private: |
| 11700 | |
| 11701 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 11702 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 11703 | typedef void InternalArenaConstructable_; |
| 11704 | typedef void DestructorSkippable_; |
| 11705 | ::xla::ComputationDataHandle* output_; |
| 11706 | mutable int _cached_size_; |
| 11707 | friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; |
| 11708 | friend void ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::InitDefaultsOpResponseImpl(); |
| 11709 | }; |
| 11710 | // =================================================================== |
| 11711 | |
| 11712 | |
| 11713 | // =================================================================== |
| 11714 | |
| 11715 | #ifdef __GNUC__ |
| 11716 | #pragma GCC diagnostic push |
| 11717 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 11718 | #endif // __GNUC__ |
| 11719 | // PaddingConfig_PaddingConfigDimension |
| 11720 | |
| 11721 | // int64 edge_padding_low = 1; |
| 11722 | inline void PaddingConfig_PaddingConfigDimension::clear_edge_padding_low() { |
| 11723 | edge_padding_low_ = GOOGLE_LONGLONG(0); |
| 11724 | } |
| 11725 | inline ::google::protobuf::int64 PaddingConfig_PaddingConfigDimension::edge_padding_low() const { |
| 11726 | // @@protoc_insertion_point(field_get:xla.PaddingConfig.PaddingConfigDimension.edge_padding_low) |
| 11727 | return edge_padding_low_; |
| 11728 | } |
| 11729 | inline void PaddingConfig_PaddingConfigDimension::set_edge_padding_low(::google::protobuf::int64 value) { |
| 11730 | |
| 11731 | edge_padding_low_ = value; |
| 11732 | // @@protoc_insertion_point(field_set:xla.PaddingConfig.PaddingConfigDimension.edge_padding_low) |
| 11733 | } |
| 11734 | |
| 11735 | // int64 edge_padding_high = 2; |
| 11736 | inline void PaddingConfig_PaddingConfigDimension::clear_edge_padding_high() { |
| 11737 | edge_padding_high_ = GOOGLE_LONGLONG(0); |
| 11738 | } |
| 11739 | inline ::google::protobuf::int64 PaddingConfig_PaddingConfigDimension::edge_padding_high() const { |
| 11740 | // @@protoc_insertion_point(field_get:xla.PaddingConfig.PaddingConfigDimension.edge_padding_high) |
| 11741 | return edge_padding_high_; |
| 11742 | } |
| 11743 | inline void PaddingConfig_PaddingConfigDimension::set_edge_padding_high(::google::protobuf::int64 value) { |
| 11744 | |
| 11745 | edge_padding_high_ = value; |
| 11746 | // @@protoc_insertion_point(field_set:xla.PaddingConfig.PaddingConfigDimension.edge_padding_high) |
| 11747 | } |
| 11748 | |
| 11749 | // int64 interior_padding = 3; |
| 11750 | inline void PaddingConfig_PaddingConfigDimension::clear_interior_padding() { |
| 11751 | interior_padding_ = GOOGLE_LONGLONG(0); |
| 11752 | } |
| 11753 | inline ::google::protobuf::int64 PaddingConfig_PaddingConfigDimension::interior_padding() const { |
| 11754 | // @@protoc_insertion_point(field_get:xla.PaddingConfig.PaddingConfigDimension.interior_padding) |
| 11755 | return interior_padding_; |
| 11756 | } |
| 11757 | inline void PaddingConfig_PaddingConfigDimension::set_interior_padding(::google::protobuf::int64 value) { |
| 11758 | |
| 11759 | interior_padding_ = value; |
| 11760 | // @@protoc_insertion_point(field_set:xla.PaddingConfig.PaddingConfigDimension.interior_padding) |
| 11761 | } |
| 11762 | |
| 11763 | // ------------------------------------------------------------------- |
| 11764 | |
| 11765 | // PaddingConfig |
| 11766 | |
| 11767 | // repeated .xla.PaddingConfig.PaddingConfigDimension dimensions = 1; |
| 11768 | inline int PaddingConfig::dimensions_size() const { |
| 11769 | return dimensions_.size(); |
| 11770 | } |
| 11771 | inline void PaddingConfig::clear_dimensions() { |
| 11772 | dimensions_.Clear(); |
| 11773 | } |
| 11774 | inline ::xla::PaddingConfig_PaddingConfigDimension* PaddingConfig::mutable_dimensions(int index) { |
| 11775 | // @@protoc_insertion_point(field_mutable:xla.PaddingConfig.dimensions) |
| 11776 | return dimensions_.Mutable(index); |
| 11777 | } |
| 11778 | inline ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >* |
| 11779 | PaddingConfig::mutable_dimensions() { |
| 11780 | // @@protoc_insertion_point(field_mutable_list:xla.PaddingConfig.dimensions) |
| 11781 | return &dimensions_; |
| 11782 | } |
| 11783 | inline const ::xla::PaddingConfig_PaddingConfigDimension& PaddingConfig::dimensions(int index) const { |
| 11784 | // @@protoc_insertion_point(field_get:xla.PaddingConfig.dimensions) |
| 11785 | return dimensions_.Get(index); |
| 11786 | } |
| 11787 | inline ::xla::PaddingConfig_PaddingConfigDimension* PaddingConfig::add_dimensions() { |
| 11788 | // @@protoc_insertion_point(field_add:xla.PaddingConfig.dimensions) |
| 11789 | return dimensions_.Add(); |
| 11790 | } |
| 11791 | inline const ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >& |
| 11792 | PaddingConfig::dimensions() const { |
| 11793 | // @@protoc_insertion_point(field_list:xla.PaddingConfig.dimensions) |
| 11794 | return dimensions_; |
| 11795 | } |
| 11796 | |
| 11797 | // ------------------------------------------------------------------- |
| 11798 | |
| 11799 | // Layout |
| 11800 | |
| 11801 | // .xla.Format format = 4; |
| 11802 | inline void Layout::clear_format() { |
| 11803 | format_ = 0; |
| 11804 | } |
| 11805 | inline ::xla::Format Layout::format() const { |
| 11806 | // @@protoc_insertion_point(field_get:xla.Layout.format) |
| 11807 | return static_cast< ::xla::Format >(format_); |
| 11808 | } |
| 11809 | inline void Layout::set_format(::xla::Format value) { |
| 11810 | |
| 11811 | format_ = value; |
| 11812 | // @@protoc_insertion_point(field_set:xla.Layout.format) |
| 11813 | } |
| 11814 | |
| 11815 | // repeated int64 minor_to_major = 1; |
| 11816 | inline int Layout::minor_to_major_size() const { |
| 11817 | return minor_to_major_.size(); |
| 11818 | } |
| 11819 | inline void Layout::clear_minor_to_major() { |
| 11820 | minor_to_major_.Clear(); |
| 11821 | } |
| 11822 | inline ::google::protobuf::int64 Layout::minor_to_major(int index) const { |
| 11823 | // @@protoc_insertion_point(field_get:xla.Layout.minor_to_major) |
| 11824 | return minor_to_major_.Get(index); |
| 11825 | } |
| 11826 | inline void Layout::set_minor_to_major(int index, ::google::protobuf::int64 value) { |
| 11827 | minor_to_major_.Set(index, value); |
| 11828 | // @@protoc_insertion_point(field_set:xla.Layout.minor_to_major) |
| 11829 | } |
| 11830 | inline void Layout::add_minor_to_major(::google::protobuf::int64 value) { |
| 11831 | minor_to_major_.Add(value); |
| 11832 | // @@protoc_insertion_point(field_add:xla.Layout.minor_to_major) |
| 11833 | } |
| 11834 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 11835 | Layout::minor_to_major() const { |
| 11836 | // @@protoc_insertion_point(field_list:xla.Layout.minor_to_major) |
| 11837 | return minor_to_major_; |
| 11838 | } |
| 11839 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 11840 | Layout::mutable_minor_to_major() { |
| 11841 | // @@protoc_insertion_point(field_mutable_list:xla.Layout.minor_to_major) |
| 11842 | return &minor_to_major_; |
| 11843 | } |
| 11844 | |
| 11845 | // repeated int64 padded_dimensions = 2; |
| 11846 | inline int Layout::padded_dimensions_size() const { |
| 11847 | return padded_dimensions_.size(); |
| 11848 | } |
| 11849 | inline void Layout::clear_padded_dimensions() { |
| 11850 | padded_dimensions_.Clear(); |
| 11851 | } |
| 11852 | inline ::google::protobuf::int64 Layout::padded_dimensions(int index) const { |
| 11853 | // @@protoc_insertion_point(field_get:xla.Layout.padded_dimensions) |
| 11854 | return padded_dimensions_.Get(index); |
| 11855 | } |
| 11856 | inline void Layout::set_padded_dimensions(int index, ::google::protobuf::int64 value) { |
| 11857 | padded_dimensions_.Set(index, value); |
| 11858 | // @@protoc_insertion_point(field_set:xla.Layout.padded_dimensions) |
| 11859 | } |
| 11860 | inline void Layout::add_padded_dimensions(::google::protobuf::int64 value) { |
| 11861 | padded_dimensions_.Add(value); |
| 11862 | // @@protoc_insertion_point(field_add:xla.Layout.padded_dimensions) |
| 11863 | } |
| 11864 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 11865 | Layout::padded_dimensions() const { |
| 11866 | // @@protoc_insertion_point(field_list:xla.Layout.padded_dimensions) |
| 11867 | return padded_dimensions_; |
| 11868 | } |
| 11869 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 11870 | Layout::mutable_padded_dimensions() { |
| 11871 | // @@protoc_insertion_point(field_mutable_list:xla.Layout.padded_dimensions) |
| 11872 | return &padded_dimensions_; |
| 11873 | } |
| 11874 | |
| 11875 | // .xla.PaddingValue padding_value = 3; |
| 11876 | inline void Layout::clear_padding_value() { |
| 11877 | padding_value_ = 0; |
| 11878 | } |
| 11879 | inline ::xla::PaddingValue Layout::padding_value() const { |
| 11880 | // @@protoc_insertion_point(field_get:xla.Layout.padding_value) |
| 11881 | return static_cast< ::xla::PaddingValue >(padding_value_); |
| 11882 | } |
| 11883 | inline void Layout::set_padding_value(::xla::PaddingValue value) { |
| 11884 | |
| 11885 | padding_value_ = value; |
| 11886 | // @@protoc_insertion_point(field_set:xla.Layout.padding_value) |
| 11887 | } |
| 11888 | |
| 11889 | // int64 max_sparse_elements = 5; |
| 11890 | inline void Layout::clear_max_sparse_elements() { |
| 11891 | max_sparse_elements_ = GOOGLE_LONGLONG(0); |
| 11892 | } |
| 11893 | inline ::google::protobuf::int64 Layout::max_sparse_elements() const { |
| 11894 | // @@protoc_insertion_point(field_get:xla.Layout.max_sparse_elements) |
| 11895 | return max_sparse_elements_; |
| 11896 | } |
| 11897 | inline void Layout::set_max_sparse_elements(::google::protobuf::int64 value) { |
| 11898 | |
| 11899 | max_sparse_elements_ = value; |
| 11900 | // @@protoc_insertion_point(field_set:xla.Layout.max_sparse_elements) |
| 11901 | } |
| 11902 | |
| 11903 | // ------------------------------------------------------------------- |
| 11904 | |
| 11905 | // Shape |
| 11906 | |
| 11907 | // .xla.PrimitiveType element_type = 2; |
| 11908 | inline void Shape::clear_element_type() { |
| 11909 | element_type_ = 0; |
| 11910 | } |
| 11911 | inline ::xla::PrimitiveType Shape::element_type() const { |
| 11912 | // @@protoc_insertion_point(field_get:xla.Shape.element_type) |
| 11913 | return static_cast< ::xla::PrimitiveType >(element_type_); |
| 11914 | } |
| 11915 | inline void Shape::set_element_type(::xla::PrimitiveType value) { |
| 11916 | |
| 11917 | element_type_ = value; |
| 11918 | // @@protoc_insertion_point(field_set:xla.Shape.element_type) |
| 11919 | } |
| 11920 | |
| 11921 | // repeated int64 dimensions = 3; |
| 11922 | inline int Shape::dimensions_size() const { |
| 11923 | return dimensions_.size(); |
| 11924 | } |
| 11925 | inline void Shape::clear_dimensions() { |
| 11926 | dimensions_.Clear(); |
| 11927 | } |
| 11928 | inline ::google::protobuf::int64 Shape::dimensions(int index) const { |
| 11929 | // @@protoc_insertion_point(field_get:xla.Shape.dimensions) |
| 11930 | return dimensions_.Get(index); |
| 11931 | } |
| 11932 | inline void Shape::set_dimensions(int index, ::google::protobuf::int64 value) { |
| 11933 | dimensions_.Set(index, value); |
| 11934 | // @@protoc_insertion_point(field_set:xla.Shape.dimensions) |
| 11935 | } |
| 11936 | inline void Shape::add_dimensions(::google::protobuf::int64 value) { |
| 11937 | dimensions_.Add(value); |
| 11938 | // @@protoc_insertion_point(field_add:xla.Shape.dimensions) |
| 11939 | } |
| 11940 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 11941 | Shape::dimensions() const { |
| 11942 | // @@protoc_insertion_point(field_list:xla.Shape.dimensions) |
| 11943 | return dimensions_; |
| 11944 | } |
| 11945 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 11946 | Shape::mutable_dimensions() { |
| 11947 | // @@protoc_insertion_point(field_mutable_list:xla.Shape.dimensions) |
| 11948 | return &dimensions_; |
| 11949 | } |
| 11950 | |
| 11951 | // repeated .xla.Shape tuple_shapes = 4; |
| 11952 | inline int Shape::tuple_shapes_size() const { |
| 11953 | return tuple_shapes_.size(); |
| 11954 | } |
| 11955 | inline void Shape::clear_tuple_shapes() { |
| 11956 | tuple_shapes_.Clear(); |
| 11957 | } |
| 11958 | inline ::xla::Shape* Shape::mutable_tuple_shapes(int index) { |
| 11959 | // @@protoc_insertion_point(field_mutable:xla.Shape.tuple_shapes) |
| 11960 | return tuple_shapes_.Mutable(index); |
| 11961 | } |
| 11962 | inline ::google::protobuf::RepeatedPtrField< ::xla::Shape >* |
| 11963 | Shape::mutable_tuple_shapes() { |
| 11964 | // @@protoc_insertion_point(field_mutable_list:xla.Shape.tuple_shapes) |
| 11965 | return &tuple_shapes_; |
| 11966 | } |
| 11967 | inline const ::xla::Shape& Shape::tuple_shapes(int index) const { |
| 11968 | // @@protoc_insertion_point(field_get:xla.Shape.tuple_shapes) |
| 11969 | return tuple_shapes_.Get(index); |
| 11970 | } |
| 11971 | inline ::xla::Shape* Shape::add_tuple_shapes() { |
| 11972 | // @@protoc_insertion_point(field_add:xla.Shape.tuple_shapes) |
| 11973 | return tuple_shapes_.Add(); |
| 11974 | } |
| 11975 | inline const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& |
| 11976 | Shape::tuple_shapes() const { |
| 11977 | // @@protoc_insertion_point(field_list:xla.Shape.tuple_shapes) |
| 11978 | return tuple_shapes_; |
| 11979 | } |
| 11980 | |
| 11981 | // .xla.Layout layout = 5; |
| 11982 | inline bool Shape::has_layout() const { |
| 11983 | return this != internal_default_instance() && layout_ != NULL; |
| 11984 | } |
| 11985 | inline void Shape::clear_layout() { |
| 11986 | if (GetArenaNoVirtual() == NULL && layout_ != NULL) { |
| 11987 | delete layout_; |
| 11988 | } |
| 11989 | layout_ = NULL; |
| 11990 | } |
| 11991 | inline const ::xla::Layout& Shape::layout() const { |
| 11992 | const ::xla::Layout* p = layout_; |
| 11993 | // @@protoc_insertion_point(field_get:xla.Shape.layout) |
| 11994 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Layout*>( |
| 11995 | &::xla::_Layout_default_instance_); |
| 11996 | } |
| 11997 | inline ::xla::Layout* Shape::release_layout() { |
| 11998 | // @@protoc_insertion_point(field_release:xla.Shape.layout) |
| 11999 | |
| 12000 | ::xla::Layout* temp = layout_; |
| 12001 | if (GetArenaNoVirtual() != NULL) { |
| 12002 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 12003 | } |
| 12004 | layout_ = NULL; |
| 12005 | return temp; |
| 12006 | } |
| 12007 | inline ::xla::Layout* Shape::unsafe_arena_release_layout() { |
| 12008 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.Shape.layout) |
| 12009 | |
| 12010 | ::xla::Layout* temp = layout_; |
| 12011 | layout_ = NULL; |
| 12012 | return temp; |
| 12013 | } |
| 12014 | inline ::xla::Layout* Shape::mutable_layout() { |
| 12015 | |
| 12016 | if (layout_ == NULL) { |
| 12017 | layout_ = ::google::protobuf::Arena::CreateMessage< ::xla::Layout >( |
| 12018 | GetArenaNoVirtual()); |
| 12019 | } |
| 12020 | // @@protoc_insertion_point(field_mutable:xla.Shape.layout) |
| 12021 | return layout_; |
| 12022 | } |
| 12023 | inline void Shape::set_allocated_layout(::xla::Layout* layout) { |
| 12024 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 12025 | if (message_arena == NULL) { |
| 12026 | delete layout_; |
| 12027 | } |
| 12028 | if (layout) { |
| 12029 | ::google::protobuf::Arena* submessage_arena = |
| 12030 | ::google::protobuf::Arena::GetArena(layout); |
| 12031 | if (message_arena != submessage_arena) { |
| 12032 | layout = ::google::protobuf::internal::GetOwnedMessage( |
| 12033 | message_arena, layout, submessage_arena); |
| 12034 | } |
| 12035 | |
| 12036 | } else { |
| 12037 | |
| 12038 | } |
| 12039 | layout_ = layout; |
| 12040 | // @@protoc_insertion_point(field_set_allocated:xla.Shape.layout) |
| 12041 | } |
| 12042 | |
| 12043 | // ------------------------------------------------------------------- |
| 12044 | |
| 12045 | // ProgramShape |
| 12046 | |
| 12047 | // repeated .xla.Shape parameters = 1; |
| 12048 | inline int ProgramShape::parameters_size() const { |
| 12049 | return parameters_.size(); |
| 12050 | } |
| 12051 | inline void ProgramShape::clear_parameters() { |
| 12052 | parameters_.Clear(); |
| 12053 | } |
| 12054 | inline ::xla::Shape* ProgramShape::mutable_parameters(int index) { |
| 12055 | // @@protoc_insertion_point(field_mutable:xla.ProgramShape.parameters) |
| 12056 | return parameters_.Mutable(index); |
| 12057 | } |
| 12058 | inline ::google::protobuf::RepeatedPtrField< ::xla::Shape >* |
| 12059 | ProgramShape::mutable_parameters() { |
| 12060 | // @@protoc_insertion_point(field_mutable_list:xla.ProgramShape.parameters) |
| 12061 | return ¶meters_; |
| 12062 | } |
| 12063 | inline const ::xla::Shape& ProgramShape::parameters(int index) const { |
| 12064 | // @@protoc_insertion_point(field_get:xla.ProgramShape.parameters) |
| 12065 | return parameters_.Get(index); |
| 12066 | } |
| 12067 | inline ::xla::Shape* ProgramShape::add_parameters() { |
| 12068 | // @@protoc_insertion_point(field_add:xla.ProgramShape.parameters) |
| 12069 | return parameters_.Add(); |
| 12070 | } |
| 12071 | inline const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& |
| 12072 | ProgramShape::parameters() const { |
| 12073 | // @@protoc_insertion_point(field_list:xla.ProgramShape.parameters) |
| 12074 | return parameters_; |
| 12075 | } |
| 12076 | |
| 12077 | // .xla.Shape result = 2; |
| 12078 | inline bool ProgramShape::has_result() const { |
| 12079 | return this != internal_default_instance() && result_ != NULL; |
| 12080 | } |
| 12081 | inline void ProgramShape::clear_result() { |
| 12082 | if (GetArenaNoVirtual() == NULL && result_ != NULL) { |
| 12083 | delete result_; |
| 12084 | } |
| 12085 | result_ = NULL; |
| 12086 | } |
| 12087 | inline const ::xla::Shape& ProgramShape::result() const { |
| 12088 | const ::xla::Shape* p = result_; |
| 12089 | // @@protoc_insertion_point(field_get:xla.ProgramShape.result) |
| 12090 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 12091 | &::xla::_Shape_default_instance_); |
| 12092 | } |
| 12093 | inline ::xla::Shape* ProgramShape::release_result() { |
| 12094 | // @@protoc_insertion_point(field_release:xla.ProgramShape.result) |
| 12095 | |
| 12096 | ::xla::Shape* temp = result_; |
| 12097 | if (GetArenaNoVirtual() != NULL) { |
| 12098 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 12099 | } |
| 12100 | result_ = NULL; |
| 12101 | return temp; |
| 12102 | } |
| 12103 | inline ::xla::Shape* ProgramShape::unsafe_arena_release_result() { |
| 12104 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ProgramShape.result) |
| 12105 | |
| 12106 | ::xla::Shape* temp = result_; |
| 12107 | result_ = NULL; |
| 12108 | return temp; |
| 12109 | } |
| 12110 | inline ::xla::Shape* ProgramShape::mutable_result() { |
| 12111 | |
| 12112 | if (result_ == NULL) { |
| 12113 | result_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 12114 | GetArenaNoVirtual()); |
| 12115 | } |
| 12116 | // @@protoc_insertion_point(field_mutable:xla.ProgramShape.result) |
| 12117 | return result_; |
| 12118 | } |
| 12119 | inline void ProgramShape::set_allocated_result(::xla::Shape* result) { |
| 12120 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 12121 | if (message_arena == NULL) { |
| 12122 | delete result_; |
| 12123 | } |
| 12124 | if (result) { |
| 12125 | ::google::protobuf::Arena* submessage_arena = |
| 12126 | ::google::protobuf::Arena::GetArena(result); |
| 12127 | if (message_arena != submessage_arena) { |
| 12128 | result = ::google::protobuf::internal::GetOwnedMessage( |
| 12129 | message_arena, result, submessage_arena); |
| 12130 | } |
| 12131 | |
| 12132 | } else { |
| 12133 | |
| 12134 | } |
| 12135 | result_ = result; |
| 12136 | // @@protoc_insertion_point(field_set_allocated:xla.ProgramShape.result) |
| 12137 | } |
| 12138 | |
| 12139 | // repeated string parameter_names = 3; |
| 12140 | inline int ProgramShape::parameter_names_size() const { |
| 12141 | return parameter_names_.size(); |
| 12142 | } |
| 12143 | inline void ProgramShape::clear_parameter_names() { |
| 12144 | parameter_names_.Clear(); |
| 12145 | } |
| 12146 | inline const ::std::string& ProgramShape::parameter_names(int index) const { |
| 12147 | // @@protoc_insertion_point(field_get:xla.ProgramShape.parameter_names) |
| 12148 | return parameter_names_.Get(index); |
| 12149 | } |
| 12150 | inline ::std::string* ProgramShape::mutable_parameter_names(int index) { |
| 12151 | // @@protoc_insertion_point(field_mutable:xla.ProgramShape.parameter_names) |
| 12152 | return parameter_names_.Mutable(index); |
| 12153 | } |
| 12154 | inline void ProgramShape::set_parameter_names(int index, const ::std::string& value) { |
| 12155 | // @@protoc_insertion_point(field_set:xla.ProgramShape.parameter_names) |
| 12156 | parameter_names_.Mutable(index)->assign(value); |
| 12157 | } |
| 12158 | #if LANG_CXX11 |
| 12159 | inline void ProgramShape::set_parameter_names(int index, ::std::string&& value) { |
| 12160 | // @@protoc_insertion_point(field_set:xla.ProgramShape.parameter_names) |
| 12161 | parameter_names_.Mutable(index)->assign(std::move(value)); |
| 12162 | } |
| 12163 | #endif |
| 12164 | inline void ProgramShape::set_parameter_names(int index, const char* value) { |
| 12165 | GOOGLE_DCHECK(value != NULL); |
| 12166 | parameter_names_.Mutable(index)->assign(value); |
| 12167 | // @@protoc_insertion_point(field_set_char:xla.ProgramShape.parameter_names) |
| 12168 | } |
| 12169 | inline void ProgramShape::set_parameter_names(int index, const char* value, size_t size) { |
| 12170 | parameter_names_.Mutable(index)->assign( |
| 12171 | reinterpret_cast<const char*>(value), size); |
| 12172 | // @@protoc_insertion_point(field_set_pointer:xla.ProgramShape.parameter_names) |
| 12173 | } |
| 12174 | inline ::std::string* ProgramShape::add_parameter_names() { |
| 12175 | // @@protoc_insertion_point(field_add_mutable:xla.ProgramShape.parameter_names) |
| 12176 | return parameter_names_.Add(); |
| 12177 | } |
| 12178 | inline void ProgramShape::add_parameter_names(const ::std::string& value) { |
| 12179 | parameter_names_.Add()->assign(value); |
| 12180 | // @@protoc_insertion_point(field_add:xla.ProgramShape.parameter_names) |
| 12181 | } |
| 12182 | #if LANG_CXX11 |
| 12183 | inline void ProgramShape::add_parameter_names(::std::string&& value) { |
| 12184 | parameter_names_.Add(std::move(value)); |
| 12185 | // @@protoc_insertion_point(field_add:xla.ProgramShape.parameter_names) |
| 12186 | } |
| 12187 | #endif |
| 12188 | inline void ProgramShape::add_parameter_names(const char* value) { |
| 12189 | GOOGLE_DCHECK(value != NULL); |
| 12190 | parameter_names_.Add()->assign(value); |
| 12191 | // @@protoc_insertion_point(field_add_char:xla.ProgramShape.parameter_names) |
| 12192 | } |
| 12193 | inline void ProgramShape::add_parameter_names(const char* value, size_t size) { |
| 12194 | parameter_names_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 12195 | // @@protoc_insertion_point(field_add_pointer:xla.ProgramShape.parameter_names) |
| 12196 | } |
| 12197 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 12198 | ProgramShape::parameter_names() const { |
| 12199 | // @@protoc_insertion_point(field_list:xla.ProgramShape.parameter_names) |
| 12200 | return parameter_names_; |
| 12201 | } |
| 12202 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 12203 | ProgramShape::mutable_parameter_names() { |
| 12204 | // @@protoc_insertion_point(field_mutable_list:xla.ProgramShape.parameter_names) |
| 12205 | return ¶meter_names_; |
| 12206 | } |
| 12207 | |
| 12208 | // ------------------------------------------------------------------- |
| 12209 | |
| 12210 | // ComputationStats |
| 12211 | |
| 12212 | // double flop_count = 1; |
| 12213 | inline void ComputationStats::clear_flop_count() { |
| 12214 | flop_count_ = 0; |
| 12215 | } |
| 12216 | inline double ComputationStats::flop_count() const { |
| 12217 | // @@protoc_insertion_point(field_get:xla.ComputationStats.flop_count) |
| 12218 | return flop_count_; |
| 12219 | } |
| 12220 | inline void ComputationStats::set_flop_count(double value) { |
| 12221 | |
| 12222 | flop_count_ = value; |
| 12223 | // @@protoc_insertion_point(field_set:xla.ComputationStats.flop_count) |
| 12224 | } |
| 12225 | |
| 12226 | // double transcendental_count = 2; |
| 12227 | inline void ComputationStats::clear_transcendental_count() { |
| 12228 | transcendental_count_ = 0; |
| 12229 | } |
| 12230 | inline double ComputationStats::transcendental_count() const { |
| 12231 | // @@protoc_insertion_point(field_get:xla.ComputationStats.transcendental_count) |
| 12232 | return transcendental_count_; |
| 12233 | } |
| 12234 | inline void ComputationStats::set_transcendental_count(double value) { |
| 12235 | |
| 12236 | transcendental_count_ = value; |
| 12237 | // @@protoc_insertion_point(field_set:xla.ComputationStats.transcendental_count) |
| 12238 | } |
| 12239 | |
| 12240 | // ------------------------------------------------------------------- |
| 12241 | |
| 12242 | // OpMetadata |
| 12243 | |
| 12244 | // string op_type = 1; |
| 12245 | inline void OpMetadata::clear_op_type() { |
| 12246 | op_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12247 | } |
| 12248 | inline const ::std::string& OpMetadata::op_type() const { |
| 12249 | // @@protoc_insertion_point(field_get:xla.OpMetadata.op_type) |
| 12250 | return op_type_.Get(); |
| 12251 | } |
| 12252 | inline void OpMetadata::set_op_type(const ::std::string& value) { |
| 12253 | |
| 12254 | op_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 12255 | // @@protoc_insertion_point(field_set:xla.OpMetadata.op_type) |
| 12256 | } |
| 12257 | #if LANG_CXX11 |
| 12258 | inline void OpMetadata::set_op_type(::std::string&& value) { |
| 12259 | |
| 12260 | op_type_.Set( |
| 12261 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 12262 | // @@protoc_insertion_point(field_set_rvalue:xla.OpMetadata.op_type) |
| 12263 | } |
| 12264 | #endif |
| 12265 | inline void OpMetadata::set_op_type(const char* value) { |
| 12266 | GOOGLE_DCHECK(value != NULL); |
| 12267 | |
| 12268 | op_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 12269 | GetArenaNoVirtual()); |
| 12270 | // @@protoc_insertion_point(field_set_char:xla.OpMetadata.op_type) |
| 12271 | } |
| 12272 | inline void OpMetadata::set_op_type(const char* value, |
| 12273 | size_t size) { |
| 12274 | |
| 12275 | op_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 12276 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 12277 | // @@protoc_insertion_point(field_set_pointer:xla.OpMetadata.op_type) |
| 12278 | } |
| 12279 | inline ::std::string* OpMetadata::mutable_op_type() { |
| 12280 | |
| 12281 | // @@protoc_insertion_point(field_mutable:xla.OpMetadata.op_type) |
| 12282 | return op_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12283 | } |
| 12284 | inline ::std::string* OpMetadata::release_op_type() { |
| 12285 | // @@protoc_insertion_point(field_release:xla.OpMetadata.op_type) |
| 12286 | |
| 12287 | return op_type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12288 | } |
| 12289 | inline void OpMetadata::set_allocated_op_type(::std::string* op_type) { |
| 12290 | if (op_type != NULL) { |
| 12291 | |
| 12292 | } else { |
| 12293 | |
| 12294 | } |
| 12295 | op_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_type, |
| 12296 | GetArenaNoVirtual()); |
| 12297 | // @@protoc_insertion_point(field_set_allocated:xla.OpMetadata.op_type) |
| 12298 | } |
| 12299 | inline ::std::string* OpMetadata::unsafe_arena_release_op_type() { |
| 12300 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpMetadata.op_type) |
| 12301 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12302 | |
| 12303 | return op_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12304 | GetArenaNoVirtual()); |
| 12305 | } |
| 12306 | inline void OpMetadata::unsafe_arena_set_allocated_op_type( |
| 12307 | ::std::string* op_type) { |
| 12308 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12309 | if (op_type != NULL) { |
| 12310 | |
| 12311 | } else { |
| 12312 | |
| 12313 | } |
| 12314 | op_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12315 | op_type, GetArenaNoVirtual()); |
| 12316 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpMetadata.op_type) |
| 12317 | } |
| 12318 | |
| 12319 | // string op_name = 2; |
| 12320 | inline void OpMetadata::clear_op_name() { |
| 12321 | op_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12322 | } |
| 12323 | inline const ::std::string& OpMetadata::op_name() const { |
| 12324 | // @@protoc_insertion_point(field_get:xla.OpMetadata.op_name) |
| 12325 | return op_name_.Get(); |
| 12326 | } |
| 12327 | inline void OpMetadata::set_op_name(const ::std::string& value) { |
| 12328 | |
| 12329 | op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 12330 | // @@protoc_insertion_point(field_set:xla.OpMetadata.op_name) |
| 12331 | } |
| 12332 | #if LANG_CXX11 |
| 12333 | inline void OpMetadata::set_op_name(::std::string&& value) { |
| 12334 | |
| 12335 | op_name_.Set( |
| 12336 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 12337 | // @@protoc_insertion_point(field_set_rvalue:xla.OpMetadata.op_name) |
| 12338 | } |
| 12339 | #endif |
| 12340 | inline void OpMetadata::set_op_name(const char* value) { |
| 12341 | GOOGLE_DCHECK(value != NULL); |
| 12342 | |
| 12343 | op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 12344 | GetArenaNoVirtual()); |
| 12345 | // @@protoc_insertion_point(field_set_char:xla.OpMetadata.op_name) |
| 12346 | } |
| 12347 | inline void OpMetadata::set_op_name(const char* value, |
| 12348 | size_t size) { |
| 12349 | |
| 12350 | op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 12351 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 12352 | // @@protoc_insertion_point(field_set_pointer:xla.OpMetadata.op_name) |
| 12353 | } |
| 12354 | inline ::std::string* OpMetadata::mutable_op_name() { |
| 12355 | |
| 12356 | // @@protoc_insertion_point(field_mutable:xla.OpMetadata.op_name) |
| 12357 | return op_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12358 | } |
| 12359 | inline ::std::string* OpMetadata::release_op_name() { |
| 12360 | // @@protoc_insertion_point(field_release:xla.OpMetadata.op_name) |
| 12361 | |
| 12362 | return op_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12363 | } |
| 12364 | inline void OpMetadata::set_allocated_op_name(::std::string* op_name) { |
| 12365 | if (op_name != NULL) { |
| 12366 | |
| 12367 | } else { |
| 12368 | |
| 12369 | } |
| 12370 | op_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_name, |
| 12371 | GetArenaNoVirtual()); |
| 12372 | // @@protoc_insertion_point(field_set_allocated:xla.OpMetadata.op_name) |
| 12373 | } |
| 12374 | inline ::std::string* OpMetadata::unsafe_arena_release_op_name() { |
| 12375 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpMetadata.op_name) |
| 12376 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12377 | |
| 12378 | return op_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12379 | GetArenaNoVirtual()); |
| 12380 | } |
| 12381 | inline void OpMetadata::unsafe_arena_set_allocated_op_name( |
| 12382 | ::std::string* op_name) { |
| 12383 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12384 | if (op_name != NULL) { |
| 12385 | |
| 12386 | } else { |
| 12387 | |
| 12388 | } |
| 12389 | op_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12390 | op_name, GetArenaNoVirtual()); |
| 12391 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpMetadata.op_name) |
| 12392 | } |
| 12393 | |
| 12394 | // string source_file = 3; |
| 12395 | inline void OpMetadata::clear_source_file() { |
| 12396 | source_file_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12397 | } |
| 12398 | inline const ::std::string& OpMetadata::source_file() const { |
| 12399 | // @@protoc_insertion_point(field_get:xla.OpMetadata.source_file) |
| 12400 | return source_file_.Get(); |
| 12401 | } |
| 12402 | inline void OpMetadata::set_source_file(const ::std::string& value) { |
| 12403 | |
| 12404 | source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 12405 | // @@protoc_insertion_point(field_set:xla.OpMetadata.source_file) |
| 12406 | } |
| 12407 | #if LANG_CXX11 |
| 12408 | inline void OpMetadata::set_source_file(::std::string&& value) { |
| 12409 | |
| 12410 | source_file_.Set( |
| 12411 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 12412 | // @@protoc_insertion_point(field_set_rvalue:xla.OpMetadata.source_file) |
| 12413 | } |
| 12414 | #endif |
| 12415 | inline void OpMetadata::set_source_file(const char* value) { |
| 12416 | GOOGLE_DCHECK(value != NULL); |
| 12417 | |
| 12418 | source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 12419 | GetArenaNoVirtual()); |
| 12420 | // @@protoc_insertion_point(field_set_char:xla.OpMetadata.source_file) |
| 12421 | } |
| 12422 | inline void OpMetadata::set_source_file(const char* value, |
| 12423 | size_t size) { |
| 12424 | |
| 12425 | source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 12426 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 12427 | // @@protoc_insertion_point(field_set_pointer:xla.OpMetadata.source_file) |
| 12428 | } |
| 12429 | inline ::std::string* OpMetadata::mutable_source_file() { |
| 12430 | |
| 12431 | // @@protoc_insertion_point(field_mutable:xla.OpMetadata.source_file) |
| 12432 | return source_file_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12433 | } |
| 12434 | inline ::std::string* OpMetadata::release_source_file() { |
| 12435 | // @@protoc_insertion_point(field_release:xla.OpMetadata.source_file) |
| 12436 | |
| 12437 | return source_file_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12438 | } |
| 12439 | inline void OpMetadata::set_allocated_source_file(::std::string* source_file) { |
| 12440 | if (source_file != NULL) { |
| 12441 | |
| 12442 | } else { |
| 12443 | |
| 12444 | } |
| 12445 | source_file_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file, |
| 12446 | GetArenaNoVirtual()); |
| 12447 | // @@protoc_insertion_point(field_set_allocated:xla.OpMetadata.source_file) |
| 12448 | } |
| 12449 | inline ::std::string* OpMetadata::unsafe_arena_release_source_file() { |
| 12450 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpMetadata.source_file) |
| 12451 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12452 | |
| 12453 | return source_file_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12454 | GetArenaNoVirtual()); |
| 12455 | } |
| 12456 | inline void OpMetadata::unsafe_arena_set_allocated_source_file( |
| 12457 | ::std::string* source_file) { |
| 12458 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12459 | if (source_file != NULL) { |
| 12460 | |
| 12461 | } else { |
| 12462 | |
| 12463 | } |
| 12464 | source_file_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12465 | source_file, GetArenaNoVirtual()); |
| 12466 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpMetadata.source_file) |
| 12467 | } |
| 12468 | |
| 12469 | // int32 source_line = 4; |
| 12470 | inline void OpMetadata::clear_source_line() { |
| 12471 | source_line_ = 0; |
| 12472 | } |
| 12473 | inline ::google::protobuf::int32 OpMetadata::source_line() const { |
| 12474 | // @@protoc_insertion_point(field_get:xla.OpMetadata.source_line) |
| 12475 | return source_line_; |
| 12476 | } |
| 12477 | inline void OpMetadata::set_source_line(::google::protobuf::int32 value) { |
| 12478 | |
| 12479 | source_line_ = value; |
| 12480 | // @@protoc_insertion_point(field_set:xla.OpMetadata.source_line) |
| 12481 | } |
| 12482 | |
| 12483 | // ------------------------------------------------------------------- |
| 12484 | |
| 12485 | // ExecutionProfile |
| 12486 | |
| 12487 | // bool compilation_cache_hit = 1; |
| 12488 | inline void ExecutionProfile::clear_compilation_cache_hit() { |
| 12489 | compilation_cache_hit_ = false; |
| 12490 | } |
| 12491 | inline bool ExecutionProfile::compilation_cache_hit() const { |
| 12492 | // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compilation_cache_hit) |
| 12493 | return compilation_cache_hit_; |
| 12494 | } |
| 12495 | inline void ExecutionProfile::set_compilation_cache_hit(bool value) { |
| 12496 | |
| 12497 | compilation_cache_hit_ = value; |
| 12498 | // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compilation_cache_hit) |
| 12499 | } |
| 12500 | |
| 12501 | // int64 compile_time_ms = 2; |
| 12502 | inline void ExecutionProfile::clear_compile_time_ms() { |
| 12503 | compile_time_ms_ = GOOGLE_LONGLONG(0); |
| 12504 | } |
| 12505 | inline ::google::protobuf::int64 ExecutionProfile::compile_time_ms() const { |
| 12506 | // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compile_time_ms) |
| 12507 | return compile_time_ms_; |
| 12508 | } |
| 12509 | inline void ExecutionProfile::set_compile_time_ms(::google::protobuf::int64 value) { |
| 12510 | |
| 12511 | compile_time_ms_ = value; |
| 12512 | // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compile_time_ms) |
| 12513 | } |
| 12514 | |
| 12515 | // int64 compute_cycle_count = 3; |
| 12516 | inline void ExecutionProfile::clear_compute_cycle_count() { |
| 12517 | compute_cycle_count_ = GOOGLE_LONGLONG(0); |
| 12518 | } |
| 12519 | inline ::google::protobuf::int64 ExecutionProfile::compute_cycle_count() const { |
| 12520 | // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compute_cycle_count) |
| 12521 | return compute_cycle_count_; |
| 12522 | } |
| 12523 | inline void ExecutionProfile::set_compute_cycle_count(::google::protobuf::int64 value) { |
| 12524 | |
| 12525 | compute_cycle_count_ = value; |
| 12526 | // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compute_cycle_count) |
| 12527 | } |
| 12528 | |
| 12529 | // int64 compute_time_ns = 4; |
| 12530 | inline void ExecutionProfile::clear_compute_time_ns() { |
| 12531 | compute_time_ns_ = GOOGLE_LONGLONG(0); |
| 12532 | } |
| 12533 | inline ::google::protobuf::int64 ExecutionProfile::compute_time_ns() const { |
| 12534 | // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compute_time_ns) |
| 12535 | return compute_time_ns_; |
| 12536 | } |
| 12537 | inline void ExecutionProfile::set_compute_time_ns(::google::protobuf::int64 value) { |
| 12538 | |
| 12539 | compute_time_ns_ = value; |
| 12540 | // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compute_time_ns) |
| 12541 | } |
| 12542 | |
| 12543 | // int64 compute_and_transfer_time_ns = 5; |
| 12544 | inline void ExecutionProfile::clear_compute_and_transfer_time_ns() { |
| 12545 | compute_and_transfer_time_ns_ = GOOGLE_LONGLONG(0); |
| 12546 | } |
| 12547 | inline ::google::protobuf::int64 ExecutionProfile::compute_and_transfer_time_ns() const { |
| 12548 | // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compute_and_transfer_time_ns) |
| 12549 | return compute_and_transfer_time_ns_; |
| 12550 | } |
| 12551 | inline void ExecutionProfile::set_compute_and_transfer_time_ns(::google::protobuf::int64 value) { |
| 12552 | |
| 12553 | compute_and_transfer_time_ns_ = value; |
| 12554 | // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compute_and_transfer_time_ns) |
| 12555 | } |
| 12556 | |
| 12557 | // ------------------------------------------------------------------- |
| 12558 | |
| 12559 | // ComputationHandle |
| 12560 | |
| 12561 | // int64 handle = 1; |
| 12562 | inline void ComputationHandle::clear_handle() { |
| 12563 | handle_ = GOOGLE_LONGLONG(0); |
| 12564 | } |
| 12565 | inline ::google::protobuf::int64 ComputationHandle::handle() const { |
| 12566 | // @@protoc_insertion_point(field_get:xla.ComputationHandle.handle) |
| 12567 | return handle_; |
| 12568 | } |
| 12569 | inline void ComputationHandle::set_handle(::google::protobuf::int64 value) { |
| 12570 | |
| 12571 | handle_ = value; |
| 12572 | // @@protoc_insertion_point(field_set:xla.ComputationHandle.handle) |
| 12573 | } |
| 12574 | |
| 12575 | // ------------------------------------------------------------------- |
| 12576 | |
| 12577 | // ExecutionHandle |
| 12578 | |
| 12579 | // int64 handle = 1; |
| 12580 | inline void ExecutionHandle::clear_handle() { |
| 12581 | handle_ = GOOGLE_LONGLONG(0); |
| 12582 | } |
| 12583 | inline ::google::protobuf::int64 ExecutionHandle::handle() const { |
| 12584 | // @@protoc_insertion_point(field_get:xla.ExecutionHandle.handle) |
| 12585 | return handle_; |
| 12586 | } |
| 12587 | inline void ExecutionHandle::set_handle(::google::protobuf::int64 value) { |
| 12588 | |
| 12589 | handle_ = value; |
| 12590 | // @@protoc_insertion_point(field_set:xla.ExecutionHandle.handle) |
| 12591 | } |
| 12592 | |
| 12593 | // ------------------------------------------------------------------- |
| 12594 | |
| 12595 | // GlobalDataHandle |
| 12596 | |
| 12597 | // int64 handle = 1; |
| 12598 | inline void GlobalDataHandle::clear_handle() { |
| 12599 | handle_ = GOOGLE_LONGLONG(0); |
| 12600 | } |
| 12601 | inline ::google::protobuf::int64 GlobalDataHandle::handle() const { |
| 12602 | // @@protoc_insertion_point(field_get:xla.GlobalDataHandle.handle) |
| 12603 | return handle_; |
| 12604 | } |
| 12605 | inline void GlobalDataHandle::set_handle(::google::protobuf::int64 value) { |
| 12606 | |
| 12607 | handle_ = value; |
| 12608 | // @@protoc_insertion_point(field_set:xla.GlobalDataHandle.handle) |
| 12609 | } |
| 12610 | |
| 12611 | // ------------------------------------------------------------------- |
| 12612 | |
| 12613 | // ComputationDataHandle |
| 12614 | |
| 12615 | // int64 handle = 1; |
| 12616 | inline void ComputationDataHandle::clear_handle() { |
| 12617 | handle_ = GOOGLE_LONGLONG(0); |
| 12618 | } |
| 12619 | inline ::google::protobuf::int64 ComputationDataHandle::handle() const { |
| 12620 | // @@protoc_insertion_point(field_get:xla.ComputationDataHandle.handle) |
| 12621 | return handle_; |
| 12622 | } |
| 12623 | inline void ComputationDataHandle::set_handle(::google::protobuf::int64 value) { |
| 12624 | |
| 12625 | handle_ = value; |
| 12626 | // @@protoc_insertion_point(field_set:xla.ComputationDataHandle.handle) |
| 12627 | } |
| 12628 | |
| 12629 | // ------------------------------------------------------------------- |
| 12630 | |
| 12631 | // DeviceHandle |
| 12632 | |
| 12633 | // int64 handle = 1; |
| 12634 | inline void DeviceHandle::clear_handle() { |
| 12635 | handle_ = GOOGLE_LONGLONG(0); |
| 12636 | } |
| 12637 | inline ::google::protobuf::int64 DeviceHandle::handle() const { |
| 12638 | // @@protoc_insertion_point(field_get:xla.DeviceHandle.handle) |
| 12639 | return handle_; |
| 12640 | } |
| 12641 | inline void DeviceHandle::set_handle(::google::protobuf::int64 value) { |
| 12642 | |
| 12643 | handle_ = value; |
| 12644 | // @@protoc_insertion_point(field_set:xla.DeviceHandle.handle) |
| 12645 | } |
| 12646 | |
| 12647 | // int64 device_count = 2; |
| 12648 | inline void DeviceHandle::clear_device_count() { |
| 12649 | device_count_ = GOOGLE_LONGLONG(0); |
| 12650 | } |
| 12651 | inline ::google::protobuf::int64 DeviceHandle::device_count() const { |
| 12652 | // @@protoc_insertion_point(field_get:xla.DeviceHandle.device_count) |
| 12653 | return device_count_; |
| 12654 | } |
| 12655 | inline void DeviceHandle::set_device_count(::google::protobuf::int64 value) { |
| 12656 | |
| 12657 | device_count_ = value; |
| 12658 | // @@protoc_insertion_point(field_set:xla.DeviceHandle.device_count) |
| 12659 | } |
| 12660 | |
| 12661 | // ------------------------------------------------------------------- |
| 12662 | |
| 12663 | // ChannelHandle |
| 12664 | |
| 12665 | // int64 handle = 1; |
| 12666 | inline void ChannelHandle::clear_handle() { |
| 12667 | handle_ = GOOGLE_LONGLONG(0); |
| 12668 | } |
| 12669 | inline ::google::protobuf::int64 ChannelHandle::handle() const { |
| 12670 | // @@protoc_insertion_point(field_get:xla.ChannelHandle.handle) |
| 12671 | return handle_; |
| 12672 | } |
| 12673 | inline void ChannelHandle::set_handle(::google::protobuf::int64 value) { |
| 12674 | |
| 12675 | handle_ = value; |
| 12676 | // @@protoc_insertion_point(field_set:xla.ChannelHandle.handle) |
| 12677 | } |
| 12678 | |
| 12679 | // ------------------------------------------------------------------- |
| 12680 | |
| 12681 | // DeviceAssignmentProto_ComputationDevice |
| 12682 | |
| 12683 | // repeated int32 replica_device_ids = 1; |
| 12684 | inline int DeviceAssignmentProto_ComputationDevice::replica_device_ids_size() const { |
| 12685 | return replica_device_ids_.size(); |
| 12686 | } |
| 12687 | inline void DeviceAssignmentProto_ComputationDevice::clear_replica_device_ids() { |
| 12688 | replica_device_ids_.Clear(); |
| 12689 | } |
| 12690 | inline ::google::protobuf::int32 DeviceAssignmentProto_ComputationDevice::replica_device_ids(int index) const { |
| 12691 | // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) |
| 12692 | return replica_device_ids_.Get(index); |
| 12693 | } |
| 12694 | inline void DeviceAssignmentProto_ComputationDevice::set_replica_device_ids(int index, ::google::protobuf::int32 value) { |
| 12695 | replica_device_ids_.Set(index, value); |
| 12696 | // @@protoc_insertion_point(field_set:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) |
| 12697 | } |
| 12698 | inline void DeviceAssignmentProto_ComputationDevice::add_replica_device_ids(::google::protobuf::int32 value) { |
| 12699 | replica_device_ids_.Add(value); |
| 12700 | // @@protoc_insertion_point(field_add:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) |
| 12701 | } |
| 12702 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 12703 | DeviceAssignmentProto_ComputationDevice::replica_device_ids() const { |
| 12704 | // @@protoc_insertion_point(field_list:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) |
| 12705 | return replica_device_ids_; |
| 12706 | } |
| 12707 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 12708 | DeviceAssignmentProto_ComputationDevice::mutable_replica_device_ids() { |
| 12709 | // @@protoc_insertion_point(field_mutable_list:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) |
| 12710 | return &replica_device_ids_; |
| 12711 | } |
| 12712 | |
| 12713 | // ------------------------------------------------------------------- |
| 12714 | |
| 12715 | // DeviceAssignmentProto |
| 12716 | |
| 12717 | // int32 replica_count = 1; |
| 12718 | inline void DeviceAssignmentProto::clear_replica_count() { |
| 12719 | replica_count_ = 0; |
| 12720 | } |
| 12721 | inline ::google::protobuf::int32 DeviceAssignmentProto::replica_count() const { |
| 12722 | // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.replica_count) |
| 12723 | return replica_count_; |
| 12724 | } |
| 12725 | inline void DeviceAssignmentProto::set_replica_count(::google::protobuf::int32 value) { |
| 12726 | |
| 12727 | replica_count_ = value; |
| 12728 | // @@protoc_insertion_point(field_set:xla.DeviceAssignmentProto.replica_count) |
| 12729 | } |
| 12730 | |
| 12731 | // int32 computation_count = 2; |
| 12732 | inline void DeviceAssignmentProto::clear_computation_count() { |
| 12733 | computation_count_ = 0; |
| 12734 | } |
| 12735 | inline ::google::protobuf::int32 DeviceAssignmentProto::computation_count() const { |
| 12736 | // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.computation_count) |
| 12737 | return computation_count_; |
| 12738 | } |
| 12739 | inline void DeviceAssignmentProto::set_computation_count(::google::protobuf::int32 value) { |
| 12740 | |
| 12741 | computation_count_ = value; |
| 12742 | // @@protoc_insertion_point(field_set:xla.DeviceAssignmentProto.computation_count) |
| 12743 | } |
| 12744 | |
| 12745 | // repeated .xla.DeviceAssignmentProto.ComputationDevice computation_devices = 3; |
| 12746 | inline int DeviceAssignmentProto::computation_devices_size() const { |
| 12747 | return computation_devices_.size(); |
| 12748 | } |
| 12749 | inline void DeviceAssignmentProto::clear_computation_devices() { |
| 12750 | computation_devices_.Clear(); |
| 12751 | } |
| 12752 | inline ::xla::DeviceAssignmentProto_ComputationDevice* DeviceAssignmentProto::mutable_computation_devices(int index) { |
| 12753 | // @@protoc_insertion_point(field_mutable:xla.DeviceAssignmentProto.computation_devices) |
| 12754 | return computation_devices_.Mutable(index); |
| 12755 | } |
| 12756 | inline ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >* |
| 12757 | DeviceAssignmentProto::mutable_computation_devices() { |
| 12758 | // @@protoc_insertion_point(field_mutable_list:xla.DeviceAssignmentProto.computation_devices) |
| 12759 | return &computation_devices_; |
| 12760 | } |
| 12761 | inline const ::xla::DeviceAssignmentProto_ComputationDevice& DeviceAssignmentProto::computation_devices(int index) const { |
| 12762 | // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.computation_devices) |
| 12763 | return computation_devices_.Get(index); |
| 12764 | } |
| 12765 | inline ::xla::DeviceAssignmentProto_ComputationDevice* DeviceAssignmentProto::add_computation_devices() { |
| 12766 | // @@protoc_insertion_point(field_add:xla.DeviceAssignmentProto.computation_devices) |
| 12767 | return computation_devices_.Add(); |
| 12768 | } |
| 12769 | inline const ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >& |
| 12770 | DeviceAssignmentProto::computation_devices() const { |
| 12771 | // @@protoc_insertion_point(field_list:xla.DeviceAssignmentProto.computation_devices) |
| 12772 | return computation_devices_; |
| 12773 | } |
| 12774 | |
| 12775 | // ------------------------------------------------------------------- |
| 12776 | |
| 12777 | // LiteralProto |
| 12778 | |
| 12779 | // .xla.Shape shape = 1; |
| 12780 | inline bool LiteralProto::has_shape() const { |
| 12781 | return this != internal_default_instance() && shape_ != NULL; |
| 12782 | } |
| 12783 | inline void LiteralProto::clear_shape() { |
| 12784 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 12785 | delete shape_; |
| 12786 | } |
| 12787 | shape_ = NULL; |
| 12788 | } |
| 12789 | inline const ::xla::Shape& LiteralProto::shape() const { |
| 12790 | const ::xla::Shape* p = shape_; |
| 12791 | // @@protoc_insertion_point(field_get:xla.LiteralProto.shape) |
| 12792 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 12793 | &::xla::_Shape_default_instance_); |
| 12794 | } |
| 12795 | inline ::xla::Shape* LiteralProto::release_shape() { |
| 12796 | // @@protoc_insertion_point(field_release:xla.LiteralProto.shape) |
| 12797 | |
| 12798 | ::xla::Shape* temp = shape_; |
| 12799 | if (GetArenaNoVirtual() != NULL) { |
| 12800 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 12801 | } |
| 12802 | shape_ = NULL; |
| 12803 | return temp; |
| 12804 | } |
| 12805 | inline ::xla::Shape* LiteralProto::unsafe_arena_release_shape() { |
| 12806 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.shape) |
| 12807 | |
| 12808 | ::xla::Shape* temp = shape_; |
| 12809 | shape_ = NULL; |
| 12810 | return temp; |
| 12811 | } |
| 12812 | inline ::xla::Shape* LiteralProto::mutable_shape() { |
| 12813 | |
| 12814 | if (shape_ == NULL) { |
| 12815 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 12816 | GetArenaNoVirtual()); |
| 12817 | } |
| 12818 | // @@protoc_insertion_point(field_mutable:xla.LiteralProto.shape) |
| 12819 | return shape_; |
| 12820 | } |
| 12821 | inline void LiteralProto::set_allocated_shape(::xla::Shape* shape) { |
| 12822 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 12823 | if (message_arena == NULL) { |
| 12824 | delete shape_; |
| 12825 | } |
| 12826 | if (shape) { |
| 12827 | ::google::protobuf::Arena* submessage_arena = |
| 12828 | ::google::protobuf::Arena::GetArena(shape); |
| 12829 | if (message_arena != submessage_arena) { |
| 12830 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 12831 | message_arena, shape, submessage_arena); |
| 12832 | } |
| 12833 | |
| 12834 | } else { |
| 12835 | |
| 12836 | } |
| 12837 | shape_ = shape; |
| 12838 | // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.shape) |
| 12839 | } |
| 12840 | |
| 12841 | // repeated bool preds = 2; |
| 12842 | inline int LiteralProto::preds_size() const { |
| 12843 | return preds_.size(); |
| 12844 | } |
| 12845 | inline void LiteralProto::clear_preds() { |
| 12846 | preds_.Clear(); |
| 12847 | } |
| 12848 | inline bool LiteralProto::preds(int index) const { |
| 12849 | // @@protoc_insertion_point(field_get:xla.LiteralProto.preds) |
| 12850 | return preds_.Get(index); |
| 12851 | } |
| 12852 | inline void LiteralProto::set_preds(int index, bool value) { |
| 12853 | preds_.Set(index, value); |
| 12854 | // @@protoc_insertion_point(field_set:xla.LiteralProto.preds) |
| 12855 | } |
| 12856 | inline void LiteralProto::add_preds(bool value) { |
| 12857 | preds_.Add(value); |
| 12858 | // @@protoc_insertion_point(field_add:xla.LiteralProto.preds) |
| 12859 | } |
| 12860 | inline const ::google::protobuf::RepeatedField< bool >& |
| 12861 | LiteralProto::preds() const { |
| 12862 | // @@protoc_insertion_point(field_list:xla.LiteralProto.preds) |
| 12863 | return preds_; |
| 12864 | } |
| 12865 | inline ::google::protobuf::RepeatedField< bool >* |
| 12866 | LiteralProto::mutable_preds() { |
| 12867 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.preds) |
| 12868 | return &preds_; |
| 12869 | } |
| 12870 | |
| 12871 | // bytes u8s = 3; |
| 12872 | inline void LiteralProto::clear_u8s() { |
| 12873 | u8s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12874 | } |
| 12875 | inline const ::std::string& LiteralProto::u8s() const { |
| 12876 | // @@protoc_insertion_point(field_get:xla.LiteralProto.u8s) |
| 12877 | return u8s_.Get(); |
| 12878 | } |
| 12879 | inline void LiteralProto::set_u8s(const ::std::string& value) { |
| 12880 | |
| 12881 | u8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 12882 | // @@protoc_insertion_point(field_set:xla.LiteralProto.u8s) |
| 12883 | } |
| 12884 | #if LANG_CXX11 |
| 12885 | inline void LiteralProto::set_u8s(::std::string&& value) { |
| 12886 | |
| 12887 | u8s_.Set( |
| 12888 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 12889 | // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.u8s) |
| 12890 | } |
| 12891 | #endif |
| 12892 | inline void LiteralProto::set_u8s(const char* value) { |
| 12893 | GOOGLE_DCHECK(value != NULL); |
| 12894 | |
| 12895 | u8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 12896 | GetArenaNoVirtual()); |
| 12897 | // @@protoc_insertion_point(field_set_char:xla.LiteralProto.u8s) |
| 12898 | } |
| 12899 | inline void LiteralProto::set_u8s(const void* value, |
| 12900 | size_t size) { |
| 12901 | |
| 12902 | u8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 12903 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 12904 | // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.u8s) |
| 12905 | } |
| 12906 | inline ::std::string* LiteralProto::mutable_u8s() { |
| 12907 | |
| 12908 | // @@protoc_insertion_point(field_mutable:xla.LiteralProto.u8s) |
| 12909 | return u8s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12910 | } |
| 12911 | inline ::std::string* LiteralProto::release_u8s() { |
| 12912 | // @@protoc_insertion_point(field_release:xla.LiteralProto.u8s) |
| 12913 | |
| 12914 | return u8s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 12915 | } |
| 12916 | inline void LiteralProto::set_allocated_u8s(::std::string* u8s) { |
| 12917 | if (u8s != NULL) { |
| 12918 | |
| 12919 | } else { |
| 12920 | |
| 12921 | } |
| 12922 | u8s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), u8s, |
| 12923 | GetArenaNoVirtual()); |
| 12924 | // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.u8s) |
| 12925 | } |
| 12926 | inline ::std::string* LiteralProto::unsafe_arena_release_u8s() { |
| 12927 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.u8s) |
| 12928 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12929 | |
| 12930 | return u8s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12931 | GetArenaNoVirtual()); |
| 12932 | } |
| 12933 | inline void LiteralProto::unsafe_arena_set_allocated_u8s( |
| 12934 | ::std::string* u8s) { |
| 12935 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 12936 | if (u8s != NULL) { |
| 12937 | |
| 12938 | } else { |
| 12939 | |
| 12940 | } |
| 12941 | u8s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12942 | u8s, GetArenaNoVirtual()); |
| 12943 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.u8s) |
| 12944 | } |
| 12945 | |
| 12946 | // repeated int32 s32s = 4; |
| 12947 | inline int LiteralProto::s32s_size() const { |
| 12948 | return s32s_.size(); |
| 12949 | } |
| 12950 | inline void LiteralProto::clear_s32s() { |
| 12951 | s32s_.Clear(); |
| 12952 | } |
| 12953 | inline ::google::protobuf::int32 LiteralProto::s32s(int index) const { |
| 12954 | // @@protoc_insertion_point(field_get:xla.LiteralProto.s32s) |
| 12955 | return s32s_.Get(index); |
| 12956 | } |
| 12957 | inline void LiteralProto::set_s32s(int index, ::google::protobuf::int32 value) { |
| 12958 | s32s_.Set(index, value); |
| 12959 | // @@protoc_insertion_point(field_set:xla.LiteralProto.s32s) |
| 12960 | } |
| 12961 | inline void LiteralProto::add_s32s(::google::protobuf::int32 value) { |
| 12962 | s32s_.Add(value); |
| 12963 | // @@protoc_insertion_point(field_add:xla.LiteralProto.s32s) |
| 12964 | } |
| 12965 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 12966 | LiteralProto::s32s() const { |
| 12967 | // @@protoc_insertion_point(field_list:xla.LiteralProto.s32s) |
| 12968 | return s32s_; |
| 12969 | } |
| 12970 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 12971 | LiteralProto::mutable_s32s() { |
| 12972 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.s32s) |
| 12973 | return &s32s_; |
| 12974 | } |
| 12975 | |
| 12976 | // repeated int64 s64s = 5; |
| 12977 | inline int LiteralProto::s64s_size() const { |
| 12978 | return s64s_.size(); |
| 12979 | } |
| 12980 | inline void LiteralProto::clear_s64s() { |
| 12981 | s64s_.Clear(); |
| 12982 | } |
| 12983 | inline ::google::protobuf::int64 LiteralProto::s64s(int index) const { |
| 12984 | // @@protoc_insertion_point(field_get:xla.LiteralProto.s64s) |
| 12985 | return s64s_.Get(index); |
| 12986 | } |
| 12987 | inline void LiteralProto::set_s64s(int index, ::google::protobuf::int64 value) { |
| 12988 | s64s_.Set(index, value); |
| 12989 | // @@protoc_insertion_point(field_set:xla.LiteralProto.s64s) |
| 12990 | } |
| 12991 | inline void LiteralProto::add_s64s(::google::protobuf::int64 value) { |
| 12992 | s64s_.Add(value); |
| 12993 | // @@protoc_insertion_point(field_add:xla.LiteralProto.s64s) |
| 12994 | } |
| 12995 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 12996 | LiteralProto::s64s() const { |
| 12997 | // @@protoc_insertion_point(field_list:xla.LiteralProto.s64s) |
| 12998 | return s64s_; |
| 12999 | } |
| 13000 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13001 | LiteralProto::mutable_s64s() { |
| 13002 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.s64s) |
| 13003 | return &s64s_; |
| 13004 | } |
| 13005 | |
| 13006 | // repeated uint32 u32s = 6; |
| 13007 | inline int LiteralProto::u32s_size() const { |
| 13008 | return u32s_.size(); |
| 13009 | } |
| 13010 | inline void LiteralProto::clear_u32s() { |
| 13011 | u32s_.Clear(); |
| 13012 | } |
| 13013 | inline ::google::protobuf::uint32 LiteralProto::u32s(int index) const { |
| 13014 | // @@protoc_insertion_point(field_get:xla.LiteralProto.u32s) |
| 13015 | return u32s_.Get(index); |
| 13016 | } |
| 13017 | inline void LiteralProto::set_u32s(int index, ::google::protobuf::uint32 value) { |
| 13018 | u32s_.Set(index, value); |
| 13019 | // @@protoc_insertion_point(field_set:xla.LiteralProto.u32s) |
| 13020 | } |
| 13021 | inline void LiteralProto::add_u32s(::google::protobuf::uint32 value) { |
| 13022 | u32s_.Add(value); |
| 13023 | // @@protoc_insertion_point(field_add:xla.LiteralProto.u32s) |
| 13024 | } |
| 13025 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
| 13026 | LiteralProto::u32s() const { |
| 13027 | // @@protoc_insertion_point(field_list:xla.LiteralProto.u32s) |
| 13028 | return u32s_; |
| 13029 | } |
| 13030 | inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
| 13031 | LiteralProto::mutable_u32s() { |
| 13032 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.u32s) |
| 13033 | return &u32s_; |
| 13034 | } |
| 13035 | |
| 13036 | // repeated uint64 u64s = 7; |
| 13037 | inline int LiteralProto::u64s_size() const { |
| 13038 | return u64s_.size(); |
| 13039 | } |
| 13040 | inline void LiteralProto::clear_u64s() { |
| 13041 | u64s_.Clear(); |
| 13042 | } |
| 13043 | inline ::google::protobuf::uint64 LiteralProto::u64s(int index) const { |
| 13044 | // @@protoc_insertion_point(field_get:xla.LiteralProto.u64s) |
| 13045 | return u64s_.Get(index); |
| 13046 | } |
| 13047 | inline void LiteralProto::set_u64s(int index, ::google::protobuf::uint64 value) { |
| 13048 | u64s_.Set(index, value); |
| 13049 | // @@protoc_insertion_point(field_set:xla.LiteralProto.u64s) |
| 13050 | } |
| 13051 | inline void LiteralProto::add_u64s(::google::protobuf::uint64 value) { |
| 13052 | u64s_.Add(value); |
| 13053 | // @@protoc_insertion_point(field_add:xla.LiteralProto.u64s) |
| 13054 | } |
| 13055 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& |
| 13056 | LiteralProto::u64s() const { |
| 13057 | // @@protoc_insertion_point(field_list:xla.LiteralProto.u64s) |
| 13058 | return u64s_; |
| 13059 | } |
| 13060 | inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* |
| 13061 | LiteralProto::mutable_u64s() { |
| 13062 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.u64s) |
| 13063 | return &u64s_; |
| 13064 | } |
| 13065 | |
| 13066 | // repeated float f32s = 8; |
| 13067 | inline int LiteralProto::f32s_size() const { |
| 13068 | return f32s_.size(); |
| 13069 | } |
| 13070 | inline void LiteralProto::clear_f32s() { |
| 13071 | f32s_.Clear(); |
| 13072 | } |
| 13073 | inline float LiteralProto::f32s(int index) const { |
| 13074 | // @@protoc_insertion_point(field_get:xla.LiteralProto.f32s) |
| 13075 | return f32s_.Get(index); |
| 13076 | } |
| 13077 | inline void LiteralProto::set_f32s(int index, float value) { |
| 13078 | f32s_.Set(index, value); |
| 13079 | // @@protoc_insertion_point(field_set:xla.LiteralProto.f32s) |
| 13080 | } |
| 13081 | inline void LiteralProto::add_f32s(float value) { |
| 13082 | f32s_.Add(value); |
| 13083 | // @@protoc_insertion_point(field_add:xla.LiteralProto.f32s) |
| 13084 | } |
| 13085 | inline const ::google::protobuf::RepeatedField< float >& |
| 13086 | LiteralProto::f32s() const { |
| 13087 | // @@protoc_insertion_point(field_list:xla.LiteralProto.f32s) |
| 13088 | return f32s_; |
| 13089 | } |
| 13090 | inline ::google::protobuf::RepeatedField< float >* |
| 13091 | LiteralProto::mutable_f32s() { |
| 13092 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.f32s) |
| 13093 | return &f32s_; |
| 13094 | } |
| 13095 | |
| 13096 | // repeated double f64s = 9; |
| 13097 | inline int LiteralProto::f64s_size() const { |
| 13098 | return f64s_.size(); |
| 13099 | } |
| 13100 | inline void LiteralProto::clear_f64s() { |
| 13101 | f64s_.Clear(); |
| 13102 | } |
| 13103 | inline double LiteralProto::f64s(int index) const { |
| 13104 | // @@protoc_insertion_point(field_get:xla.LiteralProto.f64s) |
| 13105 | return f64s_.Get(index); |
| 13106 | } |
| 13107 | inline void LiteralProto::set_f64s(int index, double value) { |
| 13108 | f64s_.Set(index, value); |
| 13109 | // @@protoc_insertion_point(field_set:xla.LiteralProto.f64s) |
| 13110 | } |
| 13111 | inline void LiteralProto::add_f64s(double value) { |
| 13112 | f64s_.Add(value); |
| 13113 | // @@protoc_insertion_point(field_add:xla.LiteralProto.f64s) |
| 13114 | } |
| 13115 | inline const ::google::protobuf::RepeatedField< double >& |
| 13116 | LiteralProto::f64s() const { |
| 13117 | // @@protoc_insertion_point(field_list:xla.LiteralProto.f64s) |
| 13118 | return f64s_; |
| 13119 | } |
| 13120 | inline ::google::protobuf::RepeatedField< double >* |
| 13121 | LiteralProto::mutable_f64s() { |
| 13122 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.f64s) |
| 13123 | return &f64s_; |
| 13124 | } |
| 13125 | |
| 13126 | // repeated float c64s = 12; |
| 13127 | inline int LiteralProto::c64s_size() const { |
| 13128 | return c64s_.size(); |
| 13129 | } |
| 13130 | inline void LiteralProto::clear_c64s() { |
| 13131 | c64s_.Clear(); |
| 13132 | } |
| 13133 | inline float LiteralProto::c64s(int index) const { |
| 13134 | // @@protoc_insertion_point(field_get:xla.LiteralProto.c64s) |
| 13135 | return c64s_.Get(index); |
| 13136 | } |
| 13137 | inline void LiteralProto::set_c64s(int index, float value) { |
| 13138 | c64s_.Set(index, value); |
| 13139 | // @@protoc_insertion_point(field_set:xla.LiteralProto.c64s) |
| 13140 | } |
| 13141 | inline void LiteralProto::add_c64s(float value) { |
| 13142 | c64s_.Add(value); |
| 13143 | // @@protoc_insertion_point(field_add:xla.LiteralProto.c64s) |
| 13144 | } |
| 13145 | inline const ::google::protobuf::RepeatedField< float >& |
| 13146 | LiteralProto::c64s() const { |
| 13147 | // @@protoc_insertion_point(field_list:xla.LiteralProto.c64s) |
| 13148 | return c64s_; |
| 13149 | } |
| 13150 | inline ::google::protobuf::RepeatedField< float >* |
| 13151 | LiteralProto::mutable_c64s() { |
| 13152 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.c64s) |
| 13153 | return &c64s_; |
| 13154 | } |
| 13155 | |
| 13156 | // repeated .xla.LiteralProto tuple_literals = 10; |
| 13157 | inline int LiteralProto::tuple_literals_size() const { |
| 13158 | return tuple_literals_.size(); |
| 13159 | } |
| 13160 | inline void LiteralProto::clear_tuple_literals() { |
| 13161 | tuple_literals_.Clear(); |
| 13162 | } |
| 13163 | inline ::xla::LiteralProto* LiteralProto::mutable_tuple_literals(int index) { |
| 13164 | // @@protoc_insertion_point(field_mutable:xla.LiteralProto.tuple_literals) |
| 13165 | return tuple_literals_.Mutable(index); |
| 13166 | } |
| 13167 | inline ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >* |
| 13168 | LiteralProto::mutable_tuple_literals() { |
| 13169 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.tuple_literals) |
| 13170 | return &tuple_literals_; |
| 13171 | } |
| 13172 | inline const ::xla::LiteralProto& LiteralProto::tuple_literals(int index) const { |
| 13173 | // @@protoc_insertion_point(field_get:xla.LiteralProto.tuple_literals) |
| 13174 | return tuple_literals_.Get(index); |
| 13175 | } |
| 13176 | inline ::xla::LiteralProto* LiteralProto::add_tuple_literals() { |
| 13177 | // @@protoc_insertion_point(field_add:xla.LiteralProto.tuple_literals) |
| 13178 | return tuple_literals_.Add(); |
| 13179 | } |
| 13180 | inline const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >& |
| 13181 | LiteralProto::tuple_literals() const { |
| 13182 | // @@protoc_insertion_point(field_list:xla.LiteralProto.tuple_literals) |
| 13183 | return tuple_literals_; |
| 13184 | } |
| 13185 | |
| 13186 | // bytes f16s = 11; |
| 13187 | inline void LiteralProto::clear_f16s() { |
| 13188 | f16s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 13189 | } |
| 13190 | inline const ::std::string& LiteralProto::f16s() const { |
| 13191 | // @@protoc_insertion_point(field_get:xla.LiteralProto.f16s) |
| 13192 | return f16s_.Get(); |
| 13193 | } |
| 13194 | inline void LiteralProto::set_f16s(const ::std::string& value) { |
| 13195 | |
| 13196 | f16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 13197 | // @@protoc_insertion_point(field_set:xla.LiteralProto.f16s) |
| 13198 | } |
| 13199 | #if LANG_CXX11 |
| 13200 | inline void LiteralProto::set_f16s(::std::string&& value) { |
| 13201 | |
| 13202 | f16s_.Set( |
| 13203 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 13204 | // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.f16s) |
| 13205 | } |
| 13206 | #endif |
| 13207 | inline void LiteralProto::set_f16s(const char* value) { |
| 13208 | GOOGLE_DCHECK(value != NULL); |
| 13209 | |
| 13210 | f16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 13211 | GetArenaNoVirtual()); |
| 13212 | // @@protoc_insertion_point(field_set_char:xla.LiteralProto.f16s) |
| 13213 | } |
| 13214 | inline void LiteralProto::set_f16s(const void* value, |
| 13215 | size_t size) { |
| 13216 | |
| 13217 | f16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 13218 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 13219 | // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.f16s) |
| 13220 | } |
| 13221 | inline ::std::string* LiteralProto::mutable_f16s() { |
| 13222 | |
| 13223 | // @@protoc_insertion_point(field_mutable:xla.LiteralProto.f16s) |
| 13224 | return f16s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 13225 | } |
| 13226 | inline ::std::string* LiteralProto::release_f16s() { |
| 13227 | // @@protoc_insertion_point(field_release:xla.LiteralProto.f16s) |
| 13228 | |
| 13229 | return f16s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 13230 | } |
| 13231 | inline void LiteralProto::set_allocated_f16s(::std::string* f16s) { |
| 13232 | if (f16s != NULL) { |
| 13233 | |
| 13234 | } else { |
| 13235 | |
| 13236 | } |
| 13237 | f16s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), f16s, |
| 13238 | GetArenaNoVirtual()); |
| 13239 | // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.f16s) |
| 13240 | } |
| 13241 | inline ::std::string* LiteralProto::unsafe_arena_release_f16s() { |
| 13242 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.f16s) |
| 13243 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 13244 | |
| 13245 | return f16s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13246 | GetArenaNoVirtual()); |
| 13247 | } |
| 13248 | inline void LiteralProto::unsafe_arena_set_allocated_f16s( |
| 13249 | ::std::string* f16s) { |
| 13250 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 13251 | if (f16s != NULL) { |
| 13252 | |
| 13253 | } else { |
| 13254 | |
| 13255 | } |
| 13256 | f16s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13257 | f16s, GetArenaNoVirtual()); |
| 13258 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.f16s) |
| 13259 | } |
| 13260 | |
| 13261 | // bytes bf16s = 13; |
| 13262 | inline void LiteralProto::clear_bf16s() { |
| 13263 | bf16s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 13264 | } |
| 13265 | inline const ::std::string& LiteralProto::bf16s() const { |
| 13266 | // @@protoc_insertion_point(field_get:xla.LiteralProto.bf16s) |
| 13267 | return bf16s_.Get(); |
| 13268 | } |
| 13269 | inline void LiteralProto::set_bf16s(const ::std::string& value) { |
| 13270 | |
| 13271 | bf16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 13272 | // @@protoc_insertion_point(field_set:xla.LiteralProto.bf16s) |
| 13273 | } |
| 13274 | #if LANG_CXX11 |
| 13275 | inline void LiteralProto::set_bf16s(::std::string&& value) { |
| 13276 | |
| 13277 | bf16s_.Set( |
| 13278 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 13279 | // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.bf16s) |
| 13280 | } |
| 13281 | #endif |
| 13282 | inline void LiteralProto::set_bf16s(const char* value) { |
| 13283 | GOOGLE_DCHECK(value != NULL); |
| 13284 | |
| 13285 | bf16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 13286 | GetArenaNoVirtual()); |
| 13287 | // @@protoc_insertion_point(field_set_char:xla.LiteralProto.bf16s) |
| 13288 | } |
| 13289 | inline void LiteralProto::set_bf16s(const void* value, |
| 13290 | size_t size) { |
| 13291 | |
| 13292 | bf16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 13293 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 13294 | // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.bf16s) |
| 13295 | } |
| 13296 | inline ::std::string* LiteralProto::mutable_bf16s() { |
| 13297 | |
| 13298 | // @@protoc_insertion_point(field_mutable:xla.LiteralProto.bf16s) |
| 13299 | return bf16s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 13300 | } |
| 13301 | inline ::std::string* LiteralProto::release_bf16s() { |
| 13302 | // @@protoc_insertion_point(field_release:xla.LiteralProto.bf16s) |
| 13303 | |
| 13304 | return bf16s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 13305 | } |
| 13306 | inline void LiteralProto::set_allocated_bf16s(::std::string* bf16s) { |
| 13307 | if (bf16s != NULL) { |
| 13308 | |
| 13309 | } else { |
| 13310 | |
| 13311 | } |
| 13312 | bf16s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bf16s, |
| 13313 | GetArenaNoVirtual()); |
| 13314 | // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.bf16s) |
| 13315 | } |
| 13316 | inline ::std::string* LiteralProto::unsafe_arena_release_bf16s() { |
| 13317 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.bf16s) |
| 13318 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 13319 | |
| 13320 | return bf16s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13321 | GetArenaNoVirtual()); |
| 13322 | } |
| 13323 | inline void LiteralProto::unsafe_arena_set_allocated_bf16s( |
| 13324 | ::std::string* bf16s) { |
| 13325 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 13326 | if (bf16s != NULL) { |
| 13327 | |
| 13328 | } else { |
| 13329 | |
| 13330 | } |
| 13331 | bf16s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13332 | bf16s, GetArenaNoVirtual()); |
| 13333 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.bf16s) |
| 13334 | } |
| 13335 | |
| 13336 | // repeated int64 sparse_indices = 14; |
| 13337 | inline int LiteralProto::sparse_indices_size() const { |
| 13338 | return sparse_indices_.size(); |
| 13339 | } |
| 13340 | inline void LiteralProto::clear_sparse_indices() { |
| 13341 | sparse_indices_.Clear(); |
| 13342 | } |
| 13343 | inline ::google::protobuf::int64 LiteralProto::sparse_indices(int index) const { |
| 13344 | // @@protoc_insertion_point(field_get:xla.LiteralProto.sparse_indices) |
| 13345 | return sparse_indices_.Get(index); |
| 13346 | } |
| 13347 | inline void LiteralProto::set_sparse_indices(int index, ::google::protobuf::int64 value) { |
| 13348 | sparse_indices_.Set(index, value); |
| 13349 | // @@protoc_insertion_point(field_set:xla.LiteralProto.sparse_indices) |
| 13350 | } |
| 13351 | inline void LiteralProto::add_sparse_indices(::google::protobuf::int64 value) { |
| 13352 | sparse_indices_.Add(value); |
| 13353 | // @@protoc_insertion_point(field_add:xla.LiteralProto.sparse_indices) |
| 13354 | } |
| 13355 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13356 | LiteralProto::sparse_indices() const { |
| 13357 | // @@protoc_insertion_point(field_list:xla.LiteralProto.sparse_indices) |
| 13358 | return sparse_indices_; |
| 13359 | } |
| 13360 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13361 | LiteralProto::mutable_sparse_indices() { |
| 13362 | // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.sparse_indices) |
| 13363 | return &sparse_indices_; |
| 13364 | } |
| 13365 | |
| 13366 | // ------------------------------------------------------------------- |
| 13367 | |
| 13368 | // WindowDimension |
| 13369 | |
| 13370 | // int64 size = 1; |
| 13371 | inline void WindowDimension::clear_size() { |
| 13372 | size_ = GOOGLE_LONGLONG(0); |
| 13373 | } |
| 13374 | inline ::google::protobuf::int64 WindowDimension::size() const { |
| 13375 | // @@protoc_insertion_point(field_get:xla.WindowDimension.size) |
| 13376 | return size_; |
| 13377 | } |
| 13378 | inline void WindowDimension::set_size(::google::protobuf::int64 value) { |
| 13379 | |
| 13380 | size_ = value; |
| 13381 | // @@protoc_insertion_point(field_set:xla.WindowDimension.size) |
| 13382 | } |
| 13383 | |
| 13384 | // int64 stride = 2; |
| 13385 | inline void WindowDimension::clear_stride() { |
| 13386 | stride_ = GOOGLE_LONGLONG(0); |
| 13387 | } |
| 13388 | inline ::google::protobuf::int64 WindowDimension::stride() const { |
| 13389 | // @@protoc_insertion_point(field_get:xla.WindowDimension.stride) |
| 13390 | return stride_; |
| 13391 | } |
| 13392 | inline void WindowDimension::set_stride(::google::protobuf::int64 value) { |
| 13393 | |
| 13394 | stride_ = value; |
| 13395 | // @@protoc_insertion_point(field_set:xla.WindowDimension.stride) |
| 13396 | } |
| 13397 | |
| 13398 | // int64 padding_low = 3; |
| 13399 | inline void WindowDimension::clear_padding_low() { |
| 13400 | padding_low_ = GOOGLE_LONGLONG(0); |
| 13401 | } |
| 13402 | inline ::google::protobuf::int64 WindowDimension::padding_low() const { |
| 13403 | // @@protoc_insertion_point(field_get:xla.WindowDimension.padding_low) |
| 13404 | return padding_low_; |
| 13405 | } |
| 13406 | inline void WindowDimension::set_padding_low(::google::protobuf::int64 value) { |
| 13407 | |
| 13408 | padding_low_ = value; |
| 13409 | // @@protoc_insertion_point(field_set:xla.WindowDimension.padding_low) |
| 13410 | } |
| 13411 | |
| 13412 | // int64 padding_high = 4; |
| 13413 | inline void WindowDimension::clear_padding_high() { |
| 13414 | padding_high_ = GOOGLE_LONGLONG(0); |
| 13415 | } |
| 13416 | inline ::google::protobuf::int64 WindowDimension::padding_high() const { |
| 13417 | // @@protoc_insertion_point(field_get:xla.WindowDimension.padding_high) |
| 13418 | return padding_high_; |
| 13419 | } |
| 13420 | inline void WindowDimension::set_padding_high(::google::protobuf::int64 value) { |
| 13421 | |
| 13422 | padding_high_ = value; |
| 13423 | // @@protoc_insertion_point(field_set:xla.WindowDimension.padding_high) |
| 13424 | } |
| 13425 | |
| 13426 | // int64 window_dilation = 5; |
| 13427 | inline void WindowDimension::clear_window_dilation() { |
| 13428 | window_dilation_ = GOOGLE_LONGLONG(0); |
| 13429 | } |
| 13430 | inline ::google::protobuf::int64 WindowDimension::window_dilation() const { |
| 13431 | // @@protoc_insertion_point(field_get:xla.WindowDimension.window_dilation) |
| 13432 | return window_dilation_; |
| 13433 | } |
| 13434 | inline void WindowDimension::set_window_dilation(::google::protobuf::int64 value) { |
| 13435 | |
| 13436 | window_dilation_ = value; |
| 13437 | // @@protoc_insertion_point(field_set:xla.WindowDimension.window_dilation) |
| 13438 | } |
| 13439 | |
| 13440 | // int64 base_dilation = 6; |
| 13441 | inline void WindowDimension::clear_base_dilation() { |
| 13442 | base_dilation_ = GOOGLE_LONGLONG(0); |
| 13443 | } |
| 13444 | inline ::google::protobuf::int64 WindowDimension::base_dilation() const { |
| 13445 | // @@protoc_insertion_point(field_get:xla.WindowDimension.base_dilation) |
| 13446 | return base_dilation_; |
| 13447 | } |
| 13448 | inline void WindowDimension::set_base_dilation(::google::protobuf::int64 value) { |
| 13449 | |
| 13450 | base_dilation_ = value; |
| 13451 | // @@protoc_insertion_point(field_set:xla.WindowDimension.base_dilation) |
| 13452 | } |
| 13453 | |
| 13454 | // bool window_reversal = 7; |
| 13455 | inline void WindowDimension::clear_window_reversal() { |
| 13456 | window_reversal_ = false; |
| 13457 | } |
| 13458 | inline bool WindowDimension::window_reversal() const { |
| 13459 | // @@protoc_insertion_point(field_get:xla.WindowDimension.window_reversal) |
| 13460 | return window_reversal_; |
| 13461 | } |
| 13462 | inline void WindowDimension::set_window_reversal(bool value) { |
| 13463 | |
| 13464 | window_reversal_ = value; |
| 13465 | // @@protoc_insertion_point(field_set:xla.WindowDimension.window_reversal) |
| 13466 | } |
| 13467 | |
| 13468 | // ------------------------------------------------------------------- |
| 13469 | |
| 13470 | // Window |
| 13471 | |
| 13472 | // repeated .xla.WindowDimension dimensions = 1; |
| 13473 | inline int Window::dimensions_size() const { |
| 13474 | return dimensions_.size(); |
| 13475 | } |
| 13476 | inline void Window::clear_dimensions() { |
| 13477 | dimensions_.Clear(); |
| 13478 | } |
| 13479 | inline ::xla::WindowDimension* Window::mutable_dimensions(int index) { |
| 13480 | // @@protoc_insertion_point(field_mutable:xla.Window.dimensions) |
| 13481 | return dimensions_.Mutable(index); |
| 13482 | } |
| 13483 | inline ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >* |
| 13484 | Window::mutable_dimensions() { |
| 13485 | // @@protoc_insertion_point(field_mutable_list:xla.Window.dimensions) |
| 13486 | return &dimensions_; |
| 13487 | } |
| 13488 | inline const ::xla::WindowDimension& Window::dimensions(int index) const { |
| 13489 | // @@protoc_insertion_point(field_get:xla.Window.dimensions) |
| 13490 | return dimensions_.Get(index); |
| 13491 | } |
| 13492 | inline ::xla::WindowDimension* Window::add_dimensions() { |
| 13493 | // @@protoc_insertion_point(field_add:xla.Window.dimensions) |
| 13494 | return dimensions_.Add(); |
| 13495 | } |
| 13496 | inline const ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >& |
| 13497 | Window::dimensions() const { |
| 13498 | // @@protoc_insertion_point(field_list:xla.Window.dimensions) |
| 13499 | return dimensions_; |
| 13500 | } |
| 13501 | |
| 13502 | // ------------------------------------------------------------------- |
| 13503 | |
| 13504 | // GatherDimensionNumbers |
| 13505 | |
| 13506 | // repeated int64 output_window_dims = 1; |
| 13507 | inline int GatherDimensionNumbers::output_window_dims_size() const { |
| 13508 | return output_window_dims_.size(); |
| 13509 | } |
| 13510 | inline void GatherDimensionNumbers::clear_output_window_dims() { |
| 13511 | output_window_dims_.Clear(); |
| 13512 | } |
| 13513 | inline ::google::protobuf::int64 GatherDimensionNumbers::output_window_dims(int index) const { |
| 13514 | // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.output_window_dims) |
| 13515 | return output_window_dims_.Get(index); |
| 13516 | } |
| 13517 | inline void GatherDimensionNumbers::set_output_window_dims(int index, ::google::protobuf::int64 value) { |
| 13518 | output_window_dims_.Set(index, value); |
| 13519 | // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.output_window_dims) |
| 13520 | } |
| 13521 | inline void GatherDimensionNumbers::add_output_window_dims(::google::protobuf::int64 value) { |
| 13522 | output_window_dims_.Add(value); |
| 13523 | // @@protoc_insertion_point(field_add:xla.GatherDimensionNumbers.output_window_dims) |
| 13524 | } |
| 13525 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13526 | GatherDimensionNumbers::output_window_dims() const { |
| 13527 | // @@protoc_insertion_point(field_list:xla.GatherDimensionNumbers.output_window_dims) |
| 13528 | return output_window_dims_; |
| 13529 | } |
| 13530 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13531 | GatherDimensionNumbers::mutable_output_window_dims() { |
| 13532 | // @@protoc_insertion_point(field_mutable_list:xla.GatherDimensionNumbers.output_window_dims) |
| 13533 | return &output_window_dims_; |
| 13534 | } |
| 13535 | |
| 13536 | // repeated int64 elided_window_dims = 2; |
| 13537 | inline int GatherDimensionNumbers::elided_window_dims_size() const { |
| 13538 | return elided_window_dims_.size(); |
| 13539 | } |
| 13540 | inline void GatherDimensionNumbers::clear_elided_window_dims() { |
| 13541 | elided_window_dims_.Clear(); |
| 13542 | } |
| 13543 | inline ::google::protobuf::int64 GatherDimensionNumbers::elided_window_dims(int index) const { |
| 13544 | // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.elided_window_dims) |
| 13545 | return elided_window_dims_.Get(index); |
| 13546 | } |
| 13547 | inline void GatherDimensionNumbers::set_elided_window_dims(int index, ::google::protobuf::int64 value) { |
| 13548 | elided_window_dims_.Set(index, value); |
| 13549 | // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.elided_window_dims) |
| 13550 | } |
| 13551 | inline void GatherDimensionNumbers::add_elided_window_dims(::google::protobuf::int64 value) { |
| 13552 | elided_window_dims_.Add(value); |
| 13553 | // @@protoc_insertion_point(field_add:xla.GatherDimensionNumbers.elided_window_dims) |
| 13554 | } |
| 13555 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13556 | GatherDimensionNumbers::elided_window_dims() const { |
| 13557 | // @@protoc_insertion_point(field_list:xla.GatherDimensionNumbers.elided_window_dims) |
| 13558 | return elided_window_dims_; |
| 13559 | } |
| 13560 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13561 | GatherDimensionNumbers::mutable_elided_window_dims() { |
| 13562 | // @@protoc_insertion_point(field_mutable_list:xla.GatherDimensionNumbers.elided_window_dims) |
| 13563 | return &elided_window_dims_; |
| 13564 | } |
| 13565 | |
| 13566 | // repeated int64 gather_dims_to_operand_dims = 3; |
| 13567 | inline int GatherDimensionNumbers::gather_dims_to_operand_dims_size() const { |
| 13568 | return gather_dims_to_operand_dims_.size(); |
| 13569 | } |
| 13570 | inline void GatherDimensionNumbers::clear_gather_dims_to_operand_dims() { |
| 13571 | gather_dims_to_operand_dims_.Clear(); |
| 13572 | } |
| 13573 | inline ::google::protobuf::int64 GatherDimensionNumbers::gather_dims_to_operand_dims(int index) const { |
| 13574 | // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.gather_dims_to_operand_dims) |
| 13575 | return gather_dims_to_operand_dims_.Get(index); |
| 13576 | } |
| 13577 | inline void GatherDimensionNumbers::set_gather_dims_to_operand_dims(int index, ::google::protobuf::int64 value) { |
| 13578 | gather_dims_to_operand_dims_.Set(index, value); |
| 13579 | // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.gather_dims_to_operand_dims) |
| 13580 | } |
| 13581 | inline void GatherDimensionNumbers::add_gather_dims_to_operand_dims(::google::protobuf::int64 value) { |
| 13582 | gather_dims_to_operand_dims_.Add(value); |
| 13583 | // @@protoc_insertion_point(field_add:xla.GatherDimensionNumbers.gather_dims_to_operand_dims) |
| 13584 | } |
| 13585 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13586 | GatherDimensionNumbers::gather_dims_to_operand_dims() const { |
| 13587 | // @@protoc_insertion_point(field_list:xla.GatherDimensionNumbers.gather_dims_to_operand_dims) |
| 13588 | return gather_dims_to_operand_dims_; |
| 13589 | } |
| 13590 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13591 | GatherDimensionNumbers::mutable_gather_dims_to_operand_dims() { |
| 13592 | // @@protoc_insertion_point(field_mutable_list:xla.GatherDimensionNumbers.gather_dims_to_operand_dims) |
| 13593 | return &gather_dims_to_operand_dims_; |
| 13594 | } |
| 13595 | |
| 13596 | // int64 index_vector_dim = 4; |
| 13597 | inline void GatherDimensionNumbers::clear_index_vector_dim() { |
| 13598 | index_vector_dim_ = GOOGLE_LONGLONG(0); |
| 13599 | } |
| 13600 | inline ::google::protobuf::int64 GatherDimensionNumbers::index_vector_dim() const { |
| 13601 | // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.index_vector_dim) |
| 13602 | return index_vector_dim_; |
| 13603 | } |
| 13604 | inline void GatherDimensionNumbers::set_index_vector_dim(::google::protobuf::int64 value) { |
| 13605 | |
| 13606 | index_vector_dim_ = value; |
| 13607 | // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.index_vector_dim) |
| 13608 | } |
| 13609 | |
| 13610 | // ------------------------------------------------------------------- |
| 13611 | |
| 13612 | // ConstantRequest |
| 13613 | |
| 13614 | // .xla.LiteralProto literal = 2; |
| 13615 | inline bool ConstantRequest::has_literal() const { |
| 13616 | return this != internal_default_instance() && literal_ != NULL; |
| 13617 | } |
| 13618 | inline void ConstantRequest::clear_literal() { |
| 13619 | if (GetArenaNoVirtual() == NULL && literal_ != NULL) { |
| 13620 | delete literal_; |
| 13621 | } |
| 13622 | literal_ = NULL; |
| 13623 | } |
| 13624 | inline const ::xla::LiteralProto& ConstantRequest::literal() const { |
| 13625 | const ::xla::LiteralProto* p = literal_; |
| 13626 | // @@protoc_insertion_point(field_get:xla.ConstantRequest.literal) |
| 13627 | return p != NULL ? *p : *reinterpret_cast<const ::xla::LiteralProto*>( |
| 13628 | &::xla::_LiteralProto_default_instance_); |
| 13629 | } |
| 13630 | inline ::xla::LiteralProto* ConstantRequest::release_literal() { |
| 13631 | // @@protoc_insertion_point(field_release:xla.ConstantRequest.literal) |
| 13632 | |
| 13633 | ::xla::LiteralProto* temp = literal_; |
| 13634 | if (GetArenaNoVirtual() != NULL) { |
| 13635 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 13636 | } |
| 13637 | literal_ = NULL; |
| 13638 | return temp; |
| 13639 | } |
| 13640 | inline ::xla::LiteralProto* ConstantRequest::unsafe_arena_release_literal() { |
| 13641 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConstantRequest.literal) |
| 13642 | |
| 13643 | ::xla::LiteralProto* temp = literal_; |
| 13644 | literal_ = NULL; |
| 13645 | return temp; |
| 13646 | } |
| 13647 | inline ::xla::LiteralProto* ConstantRequest::mutable_literal() { |
| 13648 | |
| 13649 | if (literal_ == NULL) { |
| 13650 | literal_ = ::google::protobuf::Arena::CreateMessage< ::xla::LiteralProto >( |
| 13651 | GetArenaNoVirtual()); |
| 13652 | } |
| 13653 | // @@protoc_insertion_point(field_mutable:xla.ConstantRequest.literal) |
| 13654 | return literal_; |
| 13655 | } |
| 13656 | inline void ConstantRequest::set_allocated_literal(::xla::LiteralProto* literal) { |
| 13657 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 13658 | if (message_arena == NULL) { |
| 13659 | delete literal_; |
| 13660 | } |
| 13661 | if (literal) { |
| 13662 | ::google::protobuf::Arena* submessage_arena = |
| 13663 | ::google::protobuf::Arena::GetArena(literal); |
| 13664 | if (message_arena != submessage_arena) { |
| 13665 | literal = ::google::protobuf::internal::GetOwnedMessage( |
| 13666 | message_arena, literal, submessage_arena); |
| 13667 | } |
| 13668 | |
| 13669 | } else { |
| 13670 | |
| 13671 | } |
| 13672 | literal_ = literal; |
| 13673 | // @@protoc_insertion_point(field_set_allocated:xla.ConstantRequest.literal) |
| 13674 | } |
| 13675 | |
| 13676 | // ------------------------------------------------------------------- |
| 13677 | |
| 13678 | // GetTupleElementRequest |
| 13679 | |
| 13680 | // .xla.ComputationDataHandle operand = 2; |
| 13681 | inline bool GetTupleElementRequest::has_operand() const { |
| 13682 | return this != internal_default_instance() && operand_ != NULL; |
| 13683 | } |
| 13684 | inline void GetTupleElementRequest::clear_operand() { |
| 13685 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 13686 | delete operand_; |
| 13687 | } |
| 13688 | operand_ = NULL; |
| 13689 | } |
| 13690 | inline const ::xla::ComputationDataHandle& GetTupleElementRequest::operand() const { |
| 13691 | const ::xla::ComputationDataHandle* p = operand_; |
| 13692 | // @@protoc_insertion_point(field_get:xla.GetTupleElementRequest.operand) |
| 13693 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 13694 | &::xla::_ComputationDataHandle_default_instance_); |
| 13695 | } |
| 13696 | inline ::xla::ComputationDataHandle* GetTupleElementRequest::release_operand() { |
| 13697 | // @@protoc_insertion_point(field_release:xla.GetTupleElementRequest.operand) |
| 13698 | |
| 13699 | ::xla::ComputationDataHandle* temp = operand_; |
| 13700 | if (GetArenaNoVirtual() != NULL) { |
| 13701 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 13702 | } |
| 13703 | operand_ = NULL; |
| 13704 | return temp; |
| 13705 | } |
| 13706 | inline ::xla::ComputationDataHandle* GetTupleElementRequest::unsafe_arena_release_operand() { |
| 13707 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GetTupleElementRequest.operand) |
| 13708 | |
| 13709 | ::xla::ComputationDataHandle* temp = operand_; |
| 13710 | operand_ = NULL; |
| 13711 | return temp; |
| 13712 | } |
| 13713 | inline ::xla::ComputationDataHandle* GetTupleElementRequest::mutable_operand() { |
| 13714 | |
| 13715 | if (operand_ == NULL) { |
| 13716 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 13717 | GetArenaNoVirtual()); |
| 13718 | } |
| 13719 | // @@protoc_insertion_point(field_mutable:xla.GetTupleElementRequest.operand) |
| 13720 | return operand_; |
| 13721 | } |
| 13722 | inline void GetTupleElementRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 13723 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 13724 | if (message_arena == NULL) { |
| 13725 | delete operand_; |
| 13726 | } |
| 13727 | if (operand) { |
| 13728 | ::google::protobuf::Arena* submessage_arena = |
| 13729 | ::google::protobuf::Arena::GetArena(operand); |
| 13730 | if (message_arena != submessage_arena) { |
| 13731 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 13732 | message_arena, operand, submessage_arena); |
| 13733 | } |
| 13734 | |
| 13735 | } else { |
| 13736 | |
| 13737 | } |
| 13738 | operand_ = operand; |
| 13739 | // @@protoc_insertion_point(field_set_allocated:xla.GetTupleElementRequest.operand) |
| 13740 | } |
| 13741 | |
| 13742 | // int64 index = 3; |
| 13743 | inline void GetTupleElementRequest::clear_index() { |
| 13744 | index_ = GOOGLE_LONGLONG(0); |
| 13745 | } |
| 13746 | inline ::google::protobuf::int64 GetTupleElementRequest::index() const { |
| 13747 | // @@protoc_insertion_point(field_get:xla.GetTupleElementRequest.index) |
| 13748 | return index_; |
| 13749 | } |
| 13750 | inline void GetTupleElementRequest::set_index(::google::protobuf::int64 value) { |
| 13751 | |
| 13752 | index_ = value; |
| 13753 | // @@protoc_insertion_point(field_set:xla.GetTupleElementRequest.index) |
| 13754 | } |
| 13755 | |
| 13756 | // ------------------------------------------------------------------- |
| 13757 | |
| 13758 | // SliceRequest |
| 13759 | |
| 13760 | // .xla.ComputationDataHandle operand = 2; |
| 13761 | inline bool SliceRequest::has_operand() const { |
| 13762 | return this != internal_default_instance() && operand_ != NULL; |
| 13763 | } |
| 13764 | inline void SliceRequest::clear_operand() { |
| 13765 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 13766 | delete operand_; |
| 13767 | } |
| 13768 | operand_ = NULL; |
| 13769 | } |
| 13770 | inline const ::xla::ComputationDataHandle& SliceRequest::operand() const { |
| 13771 | const ::xla::ComputationDataHandle* p = operand_; |
| 13772 | // @@protoc_insertion_point(field_get:xla.SliceRequest.operand) |
| 13773 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 13774 | &::xla::_ComputationDataHandle_default_instance_); |
| 13775 | } |
| 13776 | inline ::xla::ComputationDataHandle* SliceRequest::release_operand() { |
| 13777 | // @@protoc_insertion_point(field_release:xla.SliceRequest.operand) |
| 13778 | |
| 13779 | ::xla::ComputationDataHandle* temp = operand_; |
| 13780 | if (GetArenaNoVirtual() != NULL) { |
| 13781 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 13782 | } |
| 13783 | operand_ = NULL; |
| 13784 | return temp; |
| 13785 | } |
| 13786 | inline ::xla::ComputationDataHandle* SliceRequest::unsafe_arena_release_operand() { |
| 13787 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SliceRequest.operand) |
| 13788 | |
| 13789 | ::xla::ComputationDataHandle* temp = operand_; |
| 13790 | operand_ = NULL; |
| 13791 | return temp; |
| 13792 | } |
| 13793 | inline ::xla::ComputationDataHandle* SliceRequest::mutable_operand() { |
| 13794 | |
| 13795 | if (operand_ == NULL) { |
| 13796 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 13797 | GetArenaNoVirtual()); |
| 13798 | } |
| 13799 | // @@protoc_insertion_point(field_mutable:xla.SliceRequest.operand) |
| 13800 | return operand_; |
| 13801 | } |
| 13802 | inline void SliceRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 13803 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 13804 | if (message_arena == NULL) { |
| 13805 | delete operand_; |
| 13806 | } |
| 13807 | if (operand) { |
| 13808 | ::google::protobuf::Arena* submessage_arena = |
| 13809 | ::google::protobuf::Arena::GetArena(operand); |
| 13810 | if (message_arena != submessage_arena) { |
| 13811 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 13812 | message_arena, operand, submessage_arena); |
| 13813 | } |
| 13814 | |
| 13815 | } else { |
| 13816 | |
| 13817 | } |
| 13818 | operand_ = operand; |
| 13819 | // @@protoc_insertion_point(field_set_allocated:xla.SliceRequest.operand) |
| 13820 | } |
| 13821 | |
| 13822 | // repeated int64 start_indices = 3; |
| 13823 | inline int SliceRequest::start_indices_size() const { |
| 13824 | return start_indices_.size(); |
| 13825 | } |
| 13826 | inline void SliceRequest::clear_start_indices() { |
| 13827 | start_indices_.Clear(); |
| 13828 | } |
| 13829 | inline ::google::protobuf::int64 SliceRequest::start_indices(int index) const { |
| 13830 | // @@protoc_insertion_point(field_get:xla.SliceRequest.start_indices) |
| 13831 | return start_indices_.Get(index); |
| 13832 | } |
| 13833 | inline void SliceRequest::set_start_indices(int index, ::google::protobuf::int64 value) { |
| 13834 | start_indices_.Set(index, value); |
| 13835 | // @@protoc_insertion_point(field_set:xla.SliceRequest.start_indices) |
| 13836 | } |
| 13837 | inline void SliceRequest::add_start_indices(::google::protobuf::int64 value) { |
| 13838 | start_indices_.Add(value); |
| 13839 | // @@protoc_insertion_point(field_add:xla.SliceRequest.start_indices) |
| 13840 | } |
| 13841 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13842 | SliceRequest::start_indices() const { |
| 13843 | // @@protoc_insertion_point(field_list:xla.SliceRequest.start_indices) |
| 13844 | return start_indices_; |
| 13845 | } |
| 13846 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13847 | SliceRequest::mutable_start_indices() { |
| 13848 | // @@protoc_insertion_point(field_mutable_list:xla.SliceRequest.start_indices) |
| 13849 | return &start_indices_; |
| 13850 | } |
| 13851 | |
| 13852 | // repeated int64 limit_indices = 4; |
| 13853 | inline int SliceRequest::limit_indices_size() const { |
| 13854 | return limit_indices_.size(); |
| 13855 | } |
| 13856 | inline void SliceRequest::clear_limit_indices() { |
| 13857 | limit_indices_.Clear(); |
| 13858 | } |
| 13859 | inline ::google::protobuf::int64 SliceRequest::limit_indices(int index) const { |
| 13860 | // @@protoc_insertion_point(field_get:xla.SliceRequest.limit_indices) |
| 13861 | return limit_indices_.Get(index); |
| 13862 | } |
| 13863 | inline void SliceRequest::set_limit_indices(int index, ::google::protobuf::int64 value) { |
| 13864 | limit_indices_.Set(index, value); |
| 13865 | // @@protoc_insertion_point(field_set:xla.SliceRequest.limit_indices) |
| 13866 | } |
| 13867 | inline void SliceRequest::add_limit_indices(::google::protobuf::int64 value) { |
| 13868 | limit_indices_.Add(value); |
| 13869 | // @@protoc_insertion_point(field_add:xla.SliceRequest.limit_indices) |
| 13870 | } |
| 13871 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13872 | SliceRequest::limit_indices() const { |
| 13873 | // @@protoc_insertion_point(field_list:xla.SliceRequest.limit_indices) |
| 13874 | return limit_indices_; |
| 13875 | } |
| 13876 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13877 | SliceRequest::mutable_limit_indices() { |
| 13878 | // @@protoc_insertion_point(field_mutable_list:xla.SliceRequest.limit_indices) |
| 13879 | return &limit_indices_; |
| 13880 | } |
| 13881 | |
| 13882 | // repeated int64 strides = 5; |
| 13883 | inline int SliceRequest::strides_size() const { |
| 13884 | return strides_.size(); |
| 13885 | } |
| 13886 | inline void SliceRequest::clear_strides() { |
| 13887 | strides_.Clear(); |
| 13888 | } |
| 13889 | inline ::google::protobuf::int64 SliceRequest::strides(int index) const { |
| 13890 | // @@protoc_insertion_point(field_get:xla.SliceRequest.strides) |
| 13891 | return strides_.Get(index); |
| 13892 | } |
| 13893 | inline void SliceRequest::set_strides(int index, ::google::protobuf::int64 value) { |
| 13894 | strides_.Set(index, value); |
| 13895 | // @@protoc_insertion_point(field_set:xla.SliceRequest.strides) |
| 13896 | } |
| 13897 | inline void SliceRequest::add_strides(::google::protobuf::int64 value) { |
| 13898 | strides_.Add(value); |
| 13899 | // @@protoc_insertion_point(field_add:xla.SliceRequest.strides) |
| 13900 | } |
| 13901 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 13902 | SliceRequest::strides() const { |
| 13903 | // @@protoc_insertion_point(field_list:xla.SliceRequest.strides) |
| 13904 | return strides_; |
| 13905 | } |
| 13906 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 13907 | SliceRequest::mutable_strides() { |
| 13908 | // @@protoc_insertion_point(field_mutable_list:xla.SliceRequest.strides) |
| 13909 | return &strides_; |
| 13910 | } |
| 13911 | |
| 13912 | // ------------------------------------------------------------------- |
| 13913 | |
| 13914 | // DynamicSliceRequest |
| 13915 | |
| 13916 | // .xla.ComputationDataHandle operand = 2; |
| 13917 | inline bool DynamicSliceRequest::has_operand() const { |
| 13918 | return this != internal_default_instance() && operand_ != NULL; |
| 13919 | } |
| 13920 | inline void DynamicSliceRequest::clear_operand() { |
| 13921 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 13922 | delete operand_; |
| 13923 | } |
| 13924 | operand_ = NULL; |
| 13925 | } |
| 13926 | inline const ::xla::ComputationDataHandle& DynamicSliceRequest::operand() const { |
| 13927 | const ::xla::ComputationDataHandle* p = operand_; |
| 13928 | // @@protoc_insertion_point(field_get:xla.DynamicSliceRequest.operand) |
| 13929 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 13930 | &::xla::_ComputationDataHandle_default_instance_); |
| 13931 | } |
| 13932 | inline ::xla::ComputationDataHandle* DynamicSliceRequest::release_operand() { |
| 13933 | // @@protoc_insertion_point(field_release:xla.DynamicSliceRequest.operand) |
| 13934 | |
| 13935 | ::xla::ComputationDataHandle* temp = operand_; |
| 13936 | if (GetArenaNoVirtual() != NULL) { |
| 13937 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 13938 | } |
| 13939 | operand_ = NULL; |
| 13940 | return temp; |
| 13941 | } |
| 13942 | inline ::xla::ComputationDataHandle* DynamicSliceRequest::unsafe_arena_release_operand() { |
| 13943 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DynamicSliceRequest.operand) |
| 13944 | |
| 13945 | ::xla::ComputationDataHandle* temp = operand_; |
| 13946 | operand_ = NULL; |
| 13947 | return temp; |
| 13948 | } |
| 13949 | inline ::xla::ComputationDataHandle* DynamicSliceRequest::mutable_operand() { |
| 13950 | |
| 13951 | if (operand_ == NULL) { |
| 13952 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 13953 | GetArenaNoVirtual()); |
| 13954 | } |
| 13955 | // @@protoc_insertion_point(field_mutable:xla.DynamicSliceRequest.operand) |
| 13956 | return operand_; |
| 13957 | } |
| 13958 | inline void DynamicSliceRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 13959 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 13960 | if (message_arena == NULL) { |
| 13961 | delete operand_; |
| 13962 | } |
| 13963 | if (operand) { |
| 13964 | ::google::protobuf::Arena* submessage_arena = |
| 13965 | ::google::protobuf::Arena::GetArena(operand); |
| 13966 | if (message_arena != submessage_arena) { |
| 13967 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 13968 | message_arena, operand, submessage_arena); |
| 13969 | } |
| 13970 | |
| 13971 | } else { |
| 13972 | |
| 13973 | } |
| 13974 | operand_ = operand; |
| 13975 | // @@protoc_insertion_point(field_set_allocated:xla.DynamicSliceRequest.operand) |
| 13976 | } |
| 13977 | |
| 13978 | // .xla.ComputationDataHandle start_indices = 3; |
| 13979 | inline bool DynamicSliceRequest::has_start_indices() const { |
| 13980 | return this != internal_default_instance() && start_indices_ != NULL; |
| 13981 | } |
| 13982 | inline void DynamicSliceRequest::clear_start_indices() { |
| 13983 | if (GetArenaNoVirtual() == NULL && start_indices_ != NULL) { |
| 13984 | delete start_indices_; |
| 13985 | } |
| 13986 | start_indices_ = NULL; |
| 13987 | } |
| 13988 | inline const ::xla::ComputationDataHandle& DynamicSliceRequest::start_indices() const { |
| 13989 | const ::xla::ComputationDataHandle* p = start_indices_; |
| 13990 | // @@protoc_insertion_point(field_get:xla.DynamicSliceRequest.start_indices) |
| 13991 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 13992 | &::xla::_ComputationDataHandle_default_instance_); |
| 13993 | } |
| 13994 | inline ::xla::ComputationDataHandle* DynamicSliceRequest::release_start_indices() { |
| 13995 | // @@protoc_insertion_point(field_release:xla.DynamicSliceRequest.start_indices) |
| 13996 | |
| 13997 | ::xla::ComputationDataHandle* temp = start_indices_; |
| 13998 | if (GetArenaNoVirtual() != NULL) { |
| 13999 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14000 | } |
| 14001 | start_indices_ = NULL; |
| 14002 | return temp; |
| 14003 | } |
| 14004 | inline ::xla::ComputationDataHandle* DynamicSliceRequest::unsafe_arena_release_start_indices() { |
| 14005 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DynamicSliceRequest.start_indices) |
| 14006 | |
| 14007 | ::xla::ComputationDataHandle* temp = start_indices_; |
| 14008 | start_indices_ = NULL; |
| 14009 | return temp; |
| 14010 | } |
| 14011 | inline ::xla::ComputationDataHandle* DynamicSliceRequest::mutable_start_indices() { |
| 14012 | |
| 14013 | if (start_indices_ == NULL) { |
| 14014 | start_indices_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14015 | GetArenaNoVirtual()); |
| 14016 | } |
| 14017 | // @@protoc_insertion_point(field_mutable:xla.DynamicSliceRequest.start_indices) |
| 14018 | return start_indices_; |
| 14019 | } |
| 14020 | inline void DynamicSliceRequest::set_allocated_start_indices(::xla::ComputationDataHandle* start_indices) { |
| 14021 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14022 | if (message_arena == NULL) { |
| 14023 | delete start_indices_; |
| 14024 | } |
| 14025 | if (start_indices) { |
| 14026 | ::google::protobuf::Arena* submessage_arena = |
| 14027 | ::google::protobuf::Arena::GetArena(start_indices); |
| 14028 | if (message_arena != submessage_arena) { |
| 14029 | start_indices = ::google::protobuf::internal::GetOwnedMessage( |
| 14030 | message_arena, start_indices, submessage_arena); |
| 14031 | } |
| 14032 | |
| 14033 | } else { |
| 14034 | |
| 14035 | } |
| 14036 | start_indices_ = start_indices; |
| 14037 | // @@protoc_insertion_point(field_set_allocated:xla.DynamicSliceRequest.start_indices) |
| 14038 | } |
| 14039 | |
| 14040 | // repeated int64 slice_sizes = 4; |
| 14041 | inline int DynamicSliceRequest::slice_sizes_size() const { |
| 14042 | return slice_sizes_.size(); |
| 14043 | } |
| 14044 | inline void DynamicSliceRequest::clear_slice_sizes() { |
| 14045 | slice_sizes_.Clear(); |
| 14046 | } |
| 14047 | inline ::google::protobuf::int64 DynamicSliceRequest::slice_sizes(int index) const { |
| 14048 | // @@protoc_insertion_point(field_get:xla.DynamicSliceRequest.slice_sizes) |
| 14049 | return slice_sizes_.Get(index); |
| 14050 | } |
| 14051 | inline void DynamicSliceRequest::set_slice_sizes(int index, ::google::protobuf::int64 value) { |
| 14052 | slice_sizes_.Set(index, value); |
| 14053 | // @@protoc_insertion_point(field_set:xla.DynamicSliceRequest.slice_sizes) |
| 14054 | } |
| 14055 | inline void DynamicSliceRequest::add_slice_sizes(::google::protobuf::int64 value) { |
| 14056 | slice_sizes_.Add(value); |
| 14057 | // @@protoc_insertion_point(field_add:xla.DynamicSliceRequest.slice_sizes) |
| 14058 | } |
| 14059 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 14060 | DynamicSliceRequest::slice_sizes() const { |
| 14061 | // @@protoc_insertion_point(field_list:xla.DynamicSliceRequest.slice_sizes) |
| 14062 | return slice_sizes_; |
| 14063 | } |
| 14064 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 14065 | DynamicSliceRequest::mutable_slice_sizes() { |
| 14066 | // @@protoc_insertion_point(field_mutable_list:xla.DynamicSliceRequest.slice_sizes) |
| 14067 | return &slice_sizes_; |
| 14068 | } |
| 14069 | |
| 14070 | // ------------------------------------------------------------------- |
| 14071 | |
| 14072 | // DynamicUpdateSliceRequest |
| 14073 | |
| 14074 | // .xla.ComputationDataHandle operand = 2; |
| 14075 | inline bool DynamicUpdateSliceRequest::has_operand() const { |
| 14076 | return this != internal_default_instance() && operand_ != NULL; |
| 14077 | } |
| 14078 | inline void DynamicUpdateSliceRequest::clear_operand() { |
| 14079 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 14080 | delete operand_; |
| 14081 | } |
| 14082 | operand_ = NULL; |
| 14083 | } |
| 14084 | inline const ::xla::ComputationDataHandle& DynamicUpdateSliceRequest::operand() const { |
| 14085 | const ::xla::ComputationDataHandle* p = operand_; |
| 14086 | // @@protoc_insertion_point(field_get:xla.DynamicUpdateSliceRequest.operand) |
| 14087 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 14088 | &::xla::_ComputationDataHandle_default_instance_); |
| 14089 | } |
| 14090 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::release_operand() { |
| 14091 | // @@protoc_insertion_point(field_release:xla.DynamicUpdateSliceRequest.operand) |
| 14092 | |
| 14093 | ::xla::ComputationDataHandle* temp = operand_; |
| 14094 | if (GetArenaNoVirtual() != NULL) { |
| 14095 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14096 | } |
| 14097 | operand_ = NULL; |
| 14098 | return temp; |
| 14099 | } |
| 14100 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::unsafe_arena_release_operand() { |
| 14101 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DynamicUpdateSliceRequest.operand) |
| 14102 | |
| 14103 | ::xla::ComputationDataHandle* temp = operand_; |
| 14104 | operand_ = NULL; |
| 14105 | return temp; |
| 14106 | } |
| 14107 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::mutable_operand() { |
| 14108 | |
| 14109 | if (operand_ == NULL) { |
| 14110 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14111 | GetArenaNoVirtual()); |
| 14112 | } |
| 14113 | // @@protoc_insertion_point(field_mutable:xla.DynamicUpdateSliceRequest.operand) |
| 14114 | return operand_; |
| 14115 | } |
| 14116 | inline void DynamicUpdateSliceRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 14117 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14118 | if (message_arena == NULL) { |
| 14119 | delete operand_; |
| 14120 | } |
| 14121 | if (operand) { |
| 14122 | ::google::protobuf::Arena* submessage_arena = |
| 14123 | ::google::protobuf::Arena::GetArena(operand); |
| 14124 | if (message_arena != submessage_arena) { |
| 14125 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 14126 | message_arena, operand, submessage_arena); |
| 14127 | } |
| 14128 | |
| 14129 | } else { |
| 14130 | |
| 14131 | } |
| 14132 | operand_ = operand; |
| 14133 | // @@protoc_insertion_point(field_set_allocated:xla.DynamicUpdateSliceRequest.operand) |
| 14134 | } |
| 14135 | |
| 14136 | // .xla.ComputationDataHandle update = 3; |
| 14137 | inline bool DynamicUpdateSliceRequest::has_update() const { |
| 14138 | return this != internal_default_instance() && update_ != NULL; |
| 14139 | } |
| 14140 | inline void DynamicUpdateSliceRequest::clear_update() { |
| 14141 | if (GetArenaNoVirtual() == NULL && update_ != NULL) { |
| 14142 | delete update_; |
| 14143 | } |
| 14144 | update_ = NULL; |
| 14145 | } |
| 14146 | inline const ::xla::ComputationDataHandle& DynamicUpdateSliceRequest::update() const { |
| 14147 | const ::xla::ComputationDataHandle* p = update_; |
| 14148 | // @@protoc_insertion_point(field_get:xla.DynamicUpdateSliceRequest.update) |
| 14149 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 14150 | &::xla::_ComputationDataHandle_default_instance_); |
| 14151 | } |
| 14152 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::release_update() { |
| 14153 | // @@protoc_insertion_point(field_release:xla.DynamicUpdateSliceRequest.update) |
| 14154 | |
| 14155 | ::xla::ComputationDataHandle* temp = update_; |
| 14156 | if (GetArenaNoVirtual() != NULL) { |
| 14157 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14158 | } |
| 14159 | update_ = NULL; |
| 14160 | return temp; |
| 14161 | } |
| 14162 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::unsafe_arena_release_update() { |
| 14163 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DynamicUpdateSliceRequest.update) |
| 14164 | |
| 14165 | ::xla::ComputationDataHandle* temp = update_; |
| 14166 | update_ = NULL; |
| 14167 | return temp; |
| 14168 | } |
| 14169 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::mutable_update() { |
| 14170 | |
| 14171 | if (update_ == NULL) { |
| 14172 | update_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14173 | GetArenaNoVirtual()); |
| 14174 | } |
| 14175 | // @@protoc_insertion_point(field_mutable:xla.DynamicUpdateSliceRequest.update) |
| 14176 | return update_; |
| 14177 | } |
| 14178 | inline void DynamicUpdateSliceRequest::set_allocated_update(::xla::ComputationDataHandle* update) { |
| 14179 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14180 | if (message_arena == NULL) { |
| 14181 | delete update_; |
| 14182 | } |
| 14183 | if (update) { |
| 14184 | ::google::protobuf::Arena* submessage_arena = |
| 14185 | ::google::protobuf::Arena::GetArena(update); |
| 14186 | if (message_arena != submessage_arena) { |
| 14187 | update = ::google::protobuf::internal::GetOwnedMessage( |
| 14188 | message_arena, update, submessage_arena); |
| 14189 | } |
| 14190 | |
| 14191 | } else { |
| 14192 | |
| 14193 | } |
| 14194 | update_ = update; |
| 14195 | // @@protoc_insertion_point(field_set_allocated:xla.DynamicUpdateSliceRequest.update) |
| 14196 | } |
| 14197 | |
| 14198 | // .xla.ComputationDataHandle start_indices = 4; |
| 14199 | inline bool DynamicUpdateSliceRequest::has_start_indices() const { |
| 14200 | return this != internal_default_instance() && start_indices_ != NULL; |
| 14201 | } |
| 14202 | inline void DynamicUpdateSliceRequest::clear_start_indices() { |
| 14203 | if (GetArenaNoVirtual() == NULL && start_indices_ != NULL) { |
| 14204 | delete start_indices_; |
| 14205 | } |
| 14206 | start_indices_ = NULL; |
| 14207 | } |
| 14208 | inline const ::xla::ComputationDataHandle& DynamicUpdateSliceRequest::start_indices() const { |
| 14209 | const ::xla::ComputationDataHandle* p = start_indices_; |
| 14210 | // @@protoc_insertion_point(field_get:xla.DynamicUpdateSliceRequest.start_indices) |
| 14211 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 14212 | &::xla::_ComputationDataHandle_default_instance_); |
| 14213 | } |
| 14214 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::release_start_indices() { |
| 14215 | // @@protoc_insertion_point(field_release:xla.DynamicUpdateSliceRequest.start_indices) |
| 14216 | |
| 14217 | ::xla::ComputationDataHandle* temp = start_indices_; |
| 14218 | if (GetArenaNoVirtual() != NULL) { |
| 14219 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14220 | } |
| 14221 | start_indices_ = NULL; |
| 14222 | return temp; |
| 14223 | } |
| 14224 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::unsafe_arena_release_start_indices() { |
| 14225 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DynamicUpdateSliceRequest.start_indices) |
| 14226 | |
| 14227 | ::xla::ComputationDataHandle* temp = start_indices_; |
| 14228 | start_indices_ = NULL; |
| 14229 | return temp; |
| 14230 | } |
| 14231 | inline ::xla::ComputationDataHandle* DynamicUpdateSliceRequest::mutable_start_indices() { |
| 14232 | |
| 14233 | if (start_indices_ == NULL) { |
| 14234 | start_indices_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14235 | GetArenaNoVirtual()); |
| 14236 | } |
| 14237 | // @@protoc_insertion_point(field_mutable:xla.DynamicUpdateSliceRequest.start_indices) |
| 14238 | return start_indices_; |
| 14239 | } |
| 14240 | inline void DynamicUpdateSliceRequest::set_allocated_start_indices(::xla::ComputationDataHandle* start_indices) { |
| 14241 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14242 | if (message_arena == NULL) { |
| 14243 | delete start_indices_; |
| 14244 | } |
| 14245 | if (start_indices) { |
| 14246 | ::google::protobuf::Arena* submessage_arena = |
| 14247 | ::google::protobuf::Arena::GetArena(start_indices); |
| 14248 | if (message_arena != submessage_arena) { |
| 14249 | start_indices = ::google::protobuf::internal::GetOwnedMessage( |
| 14250 | message_arena, start_indices, submessage_arena); |
| 14251 | } |
| 14252 | |
| 14253 | } else { |
| 14254 | |
| 14255 | } |
| 14256 | start_indices_ = start_indices; |
| 14257 | // @@protoc_insertion_point(field_set_allocated:xla.DynamicUpdateSliceRequest.start_indices) |
| 14258 | } |
| 14259 | |
| 14260 | // ------------------------------------------------------------------- |
| 14261 | |
| 14262 | // ConvolutionDimensionNumbers |
| 14263 | |
| 14264 | // int64 input_batch_dimension = 7; |
| 14265 | inline void ConvolutionDimensionNumbers::clear_input_batch_dimension() { |
| 14266 | input_batch_dimension_ = GOOGLE_LONGLONG(0); |
| 14267 | } |
| 14268 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::input_batch_dimension() const { |
| 14269 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.input_batch_dimension) |
| 14270 | return input_batch_dimension_; |
| 14271 | } |
| 14272 | inline void ConvolutionDimensionNumbers::set_input_batch_dimension(::google::protobuf::int64 value) { |
| 14273 | |
| 14274 | input_batch_dimension_ = value; |
| 14275 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.input_batch_dimension) |
| 14276 | } |
| 14277 | |
| 14278 | // int64 input_feature_dimension = 8; |
| 14279 | inline void ConvolutionDimensionNumbers::clear_input_feature_dimension() { |
| 14280 | input_feature_dimension_ = GOOGLE_LONGLONG(0); |
| 14281 | } |
| 14282 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::input_feature_dimension() const { |
| 14283 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.input_feature_dimension) |
| 14284 | return input_feature_dimension_; |
| 14285 | } |
| 14286 | inline void ConvolutionDimensionNumbers::set_input_feature_dimension(::google::protobuf::int64 value) { |
| 14287 | |
| 14288 | input_feature_dimension_ = value; |
| 14289 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.input_feature_dimension) |
| 14290 | } |
| 14291 | |
| 14292 | // repeated int64 input_spatial_dimensions = 11; |
| 14293 | inline int ConvolutionDimensionNumbers::input_spatial_dimensions_size() const { |
| 14294 | return input_spatial_dimensions_.size(); |
| 14295 | } |
| 14296 | inline void ConvolutionDimensionNumbers::clear_input_spatial_dimensions() { |
| 14297 | input_spatial_dimensions_.Clear(); |
| 14298 | } |
| 14299 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::input_spatial_dimensions(int index) const { |
| 14300 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) |
| 14301 | return input_spatial_dimensions_.Get(index); |
| 14302 | } |
| 14303 | inline void ConvolutionDimensionNumbers::set_input_spatial_dimensions(int index, ::google::protobuf::int64 value) { |
| 14304 | input_spatial_dimensions_.Set(index, value); |
| 14305 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) |
| 14306 | } |
| 14307 | inline void ConvolutionDimensionNumbers::add_input_spatial_dimensions(::google::protobuf::int64 value) { |
| 14308 | input_spatial_dimensions_.Add(value); |
| 14309 | // @@protoc_insertion_point(field_add:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) |
| 14310 | } |
| 14311 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 14312 | ConvolutionDimensionNumbers::input_spatial_dimensions() const { |
| 14313 | // @@protoc_insertion_point(field_list:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) |
| 14314 | return input_spatial_dimensions_; |
| 14315 | } |
| 14316 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 14317 | ConvolutionDimensionNumbers::mutable_input_spatial_dimensions() { |
| 14318 | // @@protoc_insertion_point(field_mutable_list:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) |
| 14319 | return &input_spatial_dimensions_; |
| 14320 | } |
| 14321 | |
| 14322 | // int64 kernel_input_feature_dimension = 3; |
| 14323 | inline void ConvolutionDimensionNumbers::clear_kernel_input_feature_dimension() { |
| 14324 | kernel_input_feature_dimension_ = GOOGLE_LONGLONG(0); |
| 14325 | } |
| 14326 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::kernel_input_feature_dimension() const { |
| 14327 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.kernel_input_feature_dimension) |
| 14328 | return kernel_input_feature_dimension_; |
| 14329 | } |
| 14330 | inline void ConvolutionDimensionNumbers::set_kernel_input_feature_dimension(::google::protobuf::int64 value) { |
| 14331 | |
| 14332 | kernel_input_feature_dimension_ = value; |
| 14333 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.kernel_input_feature_dimension) |
| 14334 | } |
| 14335 | |
| 14336 | // int64 kernel_output_feature_dimension = 4; |
| 14337 | inline void ConvolutionDimensionNumbers::clear_kernel_output_feature_dimension() { |
| 14338 | kernel_output_feature_dimension_ = GOOGLE_LONGLONG(0); |
| 14339 | } |
| 14340 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::kernel_output_feature_dimension() const { |
| 14341 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.kernel_output_feature_dimension) |
| 14342 | return kernel_output_feature_dimension_; |
| 14343 | } |
| 14344 | inline void ConvolutionDimensionNumbers::set_kernel_output_feature_dimension(::google::protobuf::int64 value) { |
| 14345 | |
| 14346 | kernel_output_feature_dimension_ = value; |
| 14347 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.kernel_output_feature_dimension) |
| 14348 | } |
| 14349 | |
| 14350 | // repeated int64 kernel_spatial_dimensions = 6; |
| 14351 | inline int ConvolutionDimensionNumbers::kernel_spatial_dimensions_size() const { |
| 14352 | return kernel_spatial_dimensions_.size(); |
| 14353 | } |
| 14354 | inline void ConvolutionDimensionNumbers::clear_kernel_spatial_dimensions() { |
| 14355 | kernel_spatial_dimensions_.Clear(); |
| 14356 | } |
| 14357 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::kernel_spatial_dimensions(int index) const { |
| 14358 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) |
| 14359 | return kernel_spatial_dimensions_.Get(index); |
| 14360 | } |
| 14361 | inline void ConvolutionDimensionNumbers::set_kernel_spatial_dimensions(int index, ::google::protobuf::int64 value) { |
| 14362 | kernel_spatial_dimensions_.Set(index, value); |
| 14363 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) |
| 14364 | } |
| 14365 | inline void ConvolutionDimensionNumbers::add_kernel_spatial_dimensions(::google::protobuf::int64 value) { |
| 14366 | kernel_spatial_dimensions_.Add(value); |
| 14367 | // @@protoc_insertion_point(field_add:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) |
| 14368 | } |
| 14369 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 14370 | ConvolutionDimensionNumbers::kernel_spatial_dimensions() const { |
| 14371 | // @@protoc_insertion_point(field_list:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) |
| 14372 | return kernel_spatial_dimensions_; |
| 14373 | } |
| 14374 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 14375 | ConvolutionDimensionNumbers::mutable_kernel_spatial_dimensions() { |
| 14376 | // @@protoc_insertion_point(field_mutable_list:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) |
| 14377 | return &kernel_spatial_dimensions_; |
| 14378 | } |
| 14379 | |
| 14380 | // int64 output_batch_dimension = 9; |
| 14381 | inline void ConvolutionDimensionNumbers::clear_output_batch_dimension() { |
| 14382 | output_batch_dimension_ = GOOGLE_LONGLONG(0); |
| 14383 | } |
| 14384 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::output_batch_dimension() const { |
| 14385 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.output_batch_dimension) |
| 14386 | return output_batch_dimension_; |
| 14387 | } |
| 14388 | inline void ConvolutionDimensionNumbers::set_output_batch_dimension(::google::protobuf::int64 value) { |
| 14389 | |
| 14390 | output_batch_dimension_ = value; |
| 14391 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.output_batch_dimension) |
| 14392 | } |
| 14393 | |
| 14394 | // int64 output_feature_dimension = 10; |
| 14395 | inline void ConvolutionDimensionNumbers::clear_output_feature_dimension() { |
| 14396 | output_feature_dimension_ = GOOGLE_LONGLONG(0); |
| 14397 | } |
| 14398 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::output_feature_dimension() const { |
| 14399 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.output_feature_dimension) |
| 14400 | return output_feature_dimension_; |
| 14401 | } |
| 14402 | inline void ConvolutionDimensionNumbers::set_output_feature_dimension(::google::protobuf::int64 value) { |
| 14403 | |
| 14404 | output_feature_dimension_ = value; |
| 14405 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.output_feature_dimension) |
| 14406 | } |
| 14407 | |
| 14408 | // repeated int64 output_spatial_dimensions = 12; |
| 14409 | inline int ConvolutionDimensionNumbers::output_spatial_dimensions_size() const { |
| 14410 | return output_spatial_dimensions_.size(); |
| 14411 | } |
| 14412 | inline void ConvolutionDimensionNumbers::clear_output_spatial_dimensions() { |
| 14413 | output_spatial_dimensions_.Clear(); |
| 14414 | } |
| 14415 | inline ::google::protobuf::int64 ConvolutionDimensionNumbers::output_spatial_dimensions(int index) const { |
| 14416 | // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) |
| 14417 | return output_spatial_dimensions_.Get(index); |
| 14418 | } |
| 14419 | inline void ConvolutionDimensionNumbers::set_output_spatial_dimensions(int index, ::google::protobuf::int64 value) { |
| 14420 | output_spatial_dimensions_.Set(index, value); |
| 14421 | // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) |
| 14422 | } |
| 14423 | inline void ConvolutionDimensionNumbers::add_output_spatial_dimensions(::google::protobuf::int64 value) { |
| 14424 | output_spatial_dimensions_.Add(value); |
| 14425 | // @@protoc_insertion_point(field_add:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) |
| 14426 | } |
| 14427 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 14428 | ConvolutionDimensionNumbers::output_spatial_dimensions() const { |
| 14429 | // @@protoc_insertion_point(field_list:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) |
| 14430 | return output_spatial_dimensions_; |
| 14431 | } |
| 14432 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 14433 | ConvolutionDimensionNumbers::mutable_output_spatial_dimensions() { |
| 14434 | // @@protoc_insertion_point(field_mutable_list:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) |
| 14435 | return &output_spatial_dimensions_; |
| 14436 | } |
| 14437 | |
| 14438 | // ------------------------------------------------------------------- |
| 14439 | |
| 14440 | // ConvolveRequest |
| 14441 | |
| 14442 | // .xla.ComputationDataHandle lhs = 2; |
| 14443 | inline bool ConvolveRequest::has_lhs() const { |
| 14444 | return this != internal_default_instance() && lhs_ != NULL; |
| 14445 | } |
| 14446 | inline void ConvolveRequest::clear_lhs() { |
| 14447 | if (GetArenaNoVirtual() == NULL && lhs_ != NULL) { |
| 14448 | delete lhs_; |
| 14449 | } |
| 14450 | lhs_ = NULL; |
| 14451 | } |
| 14452 | inline const ::xla::ComputationDataHandle& ConvolveRequest::lhs() const { |
| 14453 | const ::xla::ComputationDataHandle* p = lhs_; |
| 14454 | // @@protoc_insertion_point(field_get:xla.ConvolveRequest.lhs) |
| 14455 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 14456 | &::xla::_ComputationDataHandle_default_instance_); |
| 14457 | } |
| 14458 | inline ::xla::ComputationDataHandle* ConvolveRequest::release_lhs() { |
| 14459 | // @@protoc_insertion_point(field_release:xla.ConvolveRequest.lhs) |
| 14460 | |
| 14461 | ::xla::ComputationDataHandle* temp = lhs_; |
| 14462 | if (GetArenaNoVirtual() != NULL) { |
| 14463 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14464 | } |
| 14465 | lhs_ = NULL; |
| 14466 | return temp; |
| 14467 | } |
| 14468 | inline ::xla::ComputationDataHandle* ConvolveRequest::unsafe_arena_release_lhs() { |
| 14469 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConvolveRequest.lhs) |
| 14470 | |
| 14471 | ::xla::ComputationDataHandle* temp = lhs_; |
| 14472 | lhs_ = NULL; |
| 14473 | return temp; |
| 14474 | } |
| 14475 | inline ::xla::ComputationDataHandle* ConvolveRequest::mutable_lhs() { |
| 14476 | |
| 14477 | if (lhs_ == NULL) { |
| 14478 | lhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14479 | GetArenaNoVirtual()); |
| 14480 | } |
| 14481 | // @@protoc_insertion_point(field_mutable:xla.ConvolveRequest.lhs) |
| 14482 | return lhs_; |
| 14483 | } |
| 14484 | inline void ConvolveRequest::set_allocated_lhs(::xla::ComputationDataHandle* lhs) { |
| 14485 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14486 | if (message_arena == NULL) { |
| 14487 | delete lhs_; |
| 14488 | } |
| 14489 | if (lhs) { |
| 14490 | ::google::protobuf::Arena* submessage_arena = |
| 14491 | ::google::protobuf::Arena::GetArena(lhs); |
| 14492 | if (message_arena != submessage_arena) { |
| 14493 | lhs = ::google::protobuf::internal::GetOwnedMessage( |
| 14494 | message_arena, lhs, submessage_arena); |
| 14495 | } |
| 14496 | |
| 14497 | } else { |
| 14498 | |
| 14499 | } |
| 14500 | lhs_ = lhs; |
| 14501 | // @@protoc_insertion_point(field_set_allocated:xla.ConvolveRequest.lhs) |
| 14502 | } |
| 14503 | |
| 14504 | // .xla.ComputationDataHandle rhs = 3; |
| 14505 | inline bool ConvolveRequest::has_rhs() const { |
| 14506 | return this != internal_default_instance() && rhs_ != NULL; |
| 14507 | } |
| 14508 | inline void ConvolveRequest::clear_rhs() { |
| 14509 | if (GetArenaNoVirtual() == NULL && rhs_ != NULL) { |
| 14510 | delete rhs_; |
| 14511 | } |
| 14512 | rhs_ = NULL; |
| 14513 | } |
| 14514 | inline const ::xla::ComputationDataHandle& ConvolveRequest::rhs() const { |
| 14515 | const ::xla::ComputationDataHandle* p = rhs_; |
| 14516 | // @@protoc_insertion_point(field_get:xla.ConvolveRequest.rhs) |
| 14517 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 14518 | &::xla::_ComputationDataHandle_default_instance_); |
| 14519 | } |
| 14520 | inline ::xla::ComputationDataHandle* ConvolveRequest::release_rhs() { |
| 14521 | // @@protoc_insertion_point(field_release:xla.ConvolveRequest.rhs) |
| 14522 | |
| 14523 | ::xla::ComputationDataHandle* temp = rhs_; |
| 14524 | if (GetArenaNoVirtual() != NULL) { |
| 14525 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14526 | } |
| 14527 | rhs_ = NULL; |
| 14528 | return temp; |
| 14529 | } |
| 14530 | inline ::xla::ComputationDataHandle* ConvolveRequest::unsafe_arena_release_rhs() { |
| 14531 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConvolveRequest.rhs) |
| 14532 | |
| 14533 | ::xla::ComputationDataHandle* temp = rhs_; |
| 14534 | rhs_ = NULL; |
| 14535 | return temp; |
| 14536 | } |
| 14537 | inline ::xla::ComputationDataHandle* ConvolveRequest::mutable_rhs() { |
| 14538 | |
| 14539 | if (rhs_ == NULL) { |
| 14540 | rhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14541 | GetArenaNoVirtual()); |
| 14542 | } |
| 14543 | // @@protoc_insertion_point(field_mutable:xla.ConvolveRequest.rhs) |
| 14544 | return rhs_; |
| 14545 | } |
| 14546 | inline void ConvolveRequest::set_allocated_rhs(::xla::ComputationDataHandle* rhs) { |
| 14547 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14548 | if (message_arena == NULL) { |
| 14549 | delete rhs_; |
| 14550 | } |
| 14551 | if (rhs) { |
| 14552 | ::google::protobuf::Arena* submessage_arena = |
| 14553 | ::google::protobuf::Arena::GetArena(rhs); |
| 14554 | if (message_arena != submessage_arena) { |
| 14555 | rhs = ::google::protobuf::internal::GetOwnedMessage( |
| 14556 | message_arena, rhs, submessage_arena); |
| 14557 | } |
| 14558 | |
| 14559 | } else { |
| 14560 | |
| 14561 | } |
| 14562 | rhs_ = rhs; |
| 14563 | // @@protoc_insertion_point(field_set_allocated:xla.ConvolveRequest.rhs) |
| 14564 | } |
| 14565 | |
| 14566 | // .xla.Window window = 4; |
| 14567 | inline bool ConvolveRequest::has_window() const { |
| 14568 | return this != internal_default_instance() && window_ != NULL; |
| 14569 | } |
| 14570 | inline void ConvolveRequest::clear_window() { |
| 14571 | if (GetArenaNoVirtual() == NULL && window_ != NULL) { |
| 14572 | delete window_; |
| 14573 | } |
| 14574 | window_ = NULL; |
| 14575 | } |
| 14576 | inline const ::xla::Window& ConvolveRequest::window() const { |
| 14577 | const ::xla::Window* p = window_; |
| 14578 | // @@protoc_insertion_point(field_get:xla.ConvolveRequest.window) |
| 14579 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Window*>( |
| 14580 | &::xla::_Window_default_instance_); |
| 14581 | } |
| 14582 | inline ::xla::Window* ConvolveRequest::release_window() { |
| 14583 | // @@protoc_insertion_point(field_release:xla.ConvolveRequest.window) |
| 14584 | |
| 14585 | ::xla::Window* temp = window_; |
| 14586 | if (GetArenaNoVirtual() != NULL) { |
| 14587 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14588 | } |
| 14589 | window_ = NULL; |
| 14590 | return temp; |
| 14591 | } |
| 14592 | inline ::xla::Window* ConvolveRequest::unsafe_arena_release_window() { |
| 14593 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConvolveRequest.window) |
| 14594 | |
| 14595 | ::xla::Window* temp = window_; |
| 14596 | window_ = NULL; |
| 14597 | return temp; |
| 14598 | } |
| 14599 | inline ::xla::Window* ConvolveRequest::mutable_window() { |
| 14600 | |
| 14601 | if (window_ == NULL) { |
| 14602 | window_ = ::google::protobuf::Arena::CreateMessage< ::xla::Window >( |
| 14603 | GetArenaNoVirtual()); |
| 14604 | } |
| 14605 | // @@protoc_insertion_point(field_mutable:xla.ConvolveRequest.window) |
| 14606 | return window_; |
| 14607 | } |
| 14608 | inline void ConvolveRequest::set_allocated_window(::xla::Window* window) { |
| 14609 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14610 | if (message_arena == NULL) { |
| 14611 | delete window_; |
| 14612 | } |
| 14613 | if (window) { |
| 14614 | ::google::protobuf::Arena* submessage_arena = |
| 14615 | ::google::protobuf::Arena::GetArena(window); |
| 14616 | if (message_arena != submessage_arena) { |
| 14617 | window = ::google::protobuf::internal::GetOwnedMessage( |
| 14618 | message_arena, window, submessage_arena); |
| 14619 | } |
| 14620 | |
| 14621 | } else { |
| 14622 | |
| 14623 | } |
| 14624 | window_ = window; |
| 14625 | // @@protoc_insertion_point(field_set_allocated:xla.ConvolveRequest.window) |
| 14626 | } |
| 14627 | |
| 14628 | // .xla.ConvolutionDimensionNumbers dimension_numbers = 5; |
| 14629 | inline bool ConvolveRequest::has_dimension_numbers() const { |
| 14630 | return this != internal_default_instance() && dimension_numbers_ != NULL; |
| 14631 | } |
| 14632 | inline void ConvolveRequest::clear_dimension_numbers() { |
| 14633 | if (GetArenaNoVirtual() == NULL && dimension_numbers_ != NULL) { |
| 14634 | delete dimension_numbers_; |
| 14635 | } |
| 14636 | dimension_numbers_ = NULL; |
| 14637 | } |
| 14638 | inline const ::xla::ConvolutionDimensionNumbers& ConvolveRequest::dimension_numbers() const { |
| 14639 | const ::xla::ConvolutionDimensionNumbers* p = dimension_numbers_; |
| 14640 | // @@protoc_insertion_point(field_get:xla.ConvolveRequest.dimension_numbers) |
| 14641 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ConvolutionDimensionNumbers*>( |
| 14642 | &::xla::_ConvolutionDimensionNumbers_default_instance_); |
| 14643 | } |
| 14644 | inline ::xla::ConvolutionDimensionNumbers* ConvolveRequest::release_dimension_numbers() { |
| 14645 | // @@protoc_insertion_point(field_release:xla.ConvolveRequest.dimension_numbers) |
| 14646 | |
| 14647 | ::xla::ConvolutionDimensionNumbers* temp = dimension_numbers_; |
| 14648 | if (GetArenaNoVirtual() != NULL) { |
| 14649 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14650 | } |
| 14651 | dimension_numbers_ = NULL; |
| 14652 | return temp; |
| 14653 | } |
| 14654 | inline ::xla::ConvolutionDimensionNumbers* ConvolveRequest::unsafe_arena_release_dimension_numbers() { |
| 14655 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConvolveRequest.dimension_numbers) |
| 14656 | |
| 14657 | ::xla::ConvolutionDimensionNumbers* temp = dimension_numbers_; |
| 14658 | dimension_numbers_ = NULL; |
| 14659 | return temp; |
| 14660 | } |
| 14661 | inline ::xla::ConvolutionDimensionNumbers* ConvolveRequest::mutable_dimension_numbers() { |
| 14662 | |
| 14663 | if (dimension_numbers_ == NULL) { |
| 14664 | dimension_numbers_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConvolutionDimensionNumbers >( |
| 14665 | GetArenaNoVirtual()); |
| 14666 | } |
| 14667 | // @@protoc_insertion_point(field_mutable:xla.ConvolveRequest.dimension_numbers) |
| 14668 | return dimension_numbers_; |
| 14669 | } |
| 14670 | inline void ConvolveRequest::set_allocated_dimension_numbers(::xla::ConvolutionDimensionNumbers* dimension_numbers) { |
| 14671 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14672 | if (message_arena == NULL) { |
| 14673 | delete dimension_numbers_; |
| 14674 | } |
| 14675 | if (dimension_numbers) { |
| 14676 | ::google::protobuf::Arena* submessage_arena = |
| 14677 | ::google::protobuf::Arena::GetArena(dimension_numbers); |
| 14678 | if (message_arena != submessage_arena) { |
| 14679 | dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( |
| 14680 | message_arena, dimension_numbers, submessage_arena); |
| 14681 | } |
| 14682 | |
| 14683 | } else { |
| 14684 | |
| 14685 | } |
| 14686 | dimension_numbers_ = dimension_numbers; |
| 14687 | // @@protoc_insertion_point(field_set_allocated:xla.ConvolveRequest.dimension_numbers) |
| 14688 | } |
| 14689 | |
| 14690 | // ------------------------------------------------------------------- |
| 14691 | |
| 14692 | // FftRequest |
| 14693 | |
| 14694 | // .xla.FftType fft_type = 1; |
| 14695 | inline void FftRequest::clear_fft_type() { |
| 14696 | fft_type_ = 0; |
| 14697 | } |
| 14698 | inline ::xla::FftType FftRequest::fft_type() const { |
| 14699 | // @@protoc_insertion_point(field_get:xla.FftRequest.fft_type) |
| 14700 | return static_cast< ::xla::FftType >(fft_type_); |
| 14701 | } |
| 14702 | inline void FftRequest::set_fft_type(::xla::FftType value) { |
| 14703 | |
| 14704 | fft_type_ = value; |
| 14705 | // @@protoc_insertion_point(field_set:xla.FftRequest.fft_type) |
| 14706 | } |
| 14707 | |
| 14708 | // repeated int64 fft_length = 2; |
| 14709 | inline int FftRequest::fft_length_size() const { |
| 14710 | return fft_length_.size(); |
| 14711 | } |
| 14712 | inline void FftRequest::clear_fft_length() { |
| 14713 | fft_length_.Clear(); |
| 14714 | } |
| 14715 | inline ::google::protobuf::int64 FftRequest::fft_length(int index) const { |
| 14716 | // @@protoc_insertion_point(field_get:xla.FftRequest.fft_length) |
| 14717 | return fft_length_.Get(index); |
| 14718 | } |
| 14719 | inline void FftRequest::set_fft_length(int index, ::google::protobuf::int64 value) { |
| 14720 | fft_length_.Set(index, value); |
| 14721 | // @@protoc_insertion_point(field_set:xla.FftRequest.fft_length) |
| 14722 | } |
| 14723 | inline void FftRequest::add_fft_length(::google::protobuf::int64 value) { |
| 14724 | fft_length_.Add(value); |
| 14725 | // @@protoc_insertion_point(field_add:xla.FftRequest.fft_length) |
| 14726 | } |
| 14727 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 14728 | FftRequest::fft_length() const { |
| 14729 | // @@protoc_insertion_point(field_list:xla.FftRequest.fft_length) |
| 14730 | return fft_length_; |
| 14731 | } |
| 14732 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 14733 | FftRequest::mutable_fft_length() { |
| 14734 | // @@protoc_insertion_point(field_mutable_list:xla.FftRequest.fft_length) |
| 14735 | return &fft_length_; |
| 14736 | } |
| 14737 | |
| 14738 | // .xla.ComputationDataHandle operand = 3; |
| 14739 | inline bool FftRequest::has_operand() const { |
| 14740 | return this != internal_default_instance() && operand_ != NULL; |
| 14741 | } |
| 14742 | inline void FftRequest::clear_operand() { |
| 14743 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 14744 | delete operand_; |
| 14745 | } |
| 14746 | operand_ = NULL; |
| 14747 | } |
| 14748 | inline const ::xla::ComputationDataHandle& FftRequest::operand() const { |
| 14749 | const ::xla::ComputationDataHandle* p = operand_; |
| 14750 | // @@protoc_insertion_point(field_get:xla.FftRequest.operand) |
| 14751 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 14752 | &::xla::_ComputationDataHandle_default_instance_); |
| 14753 | } |
| 14754 | inline ::xla::ComputationDataHandle* FftRequest::release_operand() { |
| 14755 | // @@protoc_insertion_point(field_release:xla.FftRequest.operand) |
| 14756 | |
| 14757 | ::xla::ComputationDataHandle* temp = operand_; |
| 14758 | if (GetArenaNoVirtual() != NULL) { |
| 14759 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14760 | } |
| 14761 | operand_ = NULL; |
| 14762 | return temp; |
| 14763 | } |
| 14764 | inline ::xla::ComputationDataHandle* FftRequest::unsafe_arena_release_operand() { |
| 14765 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.FftRequest.operand) |
| 14766 | |
| 14767 | ::xla::ComputationDataHandle* temp = operand_; |
| 14768 | operand_ = NULL; |
| 14769 | return temp; |
| 14770 | } |
| 14771 | inline ::xla::ComputationDataHandle* FftRequest::mutable_operand() { |
| 14772 | |
| 14773 | if (operand_ == NULL) { |
| 14774 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 14775 | GetArenaNoVirtual()); |
| 14776 | } |
| 14777 | // @@protoc_insertion_point(field_mutable:xla.FftRequest.operand) |
| 14778 | return operand_; |
| 14779 | } |
| 14780 | inline void FftRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 14781 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14782 | if (message_arena == NULL) { |
| 14783 | delete operand_; |
| 14784 | } |
| 14785 | if (operand) { |
| 14786 | ::google::protobuf::Arena* submessage_arena = |
| 14787 | ::google::protobuf::Arena::GetArena(operand); |
| 14788 | if (message_arena != submessage_arena) { |
| 14789 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 14790 | message_arena, operand, submessage_arena); |
| 14791 | } |
| 14792 | |
| 14793 | } else { |
| 14794 | |
| 14795 | } |
| 14796 | operand_ = operand; |
| 14797 | // @@protoc_insertion_point(field_set_allocated:xla.FftRequest.operand) |
| 14798 | } |
| 14799 | |
| 14800 | // ------------------------------------------------------------------- |
| 14801 | |
| 14802 | // InfeedRequest |
| 14803 | |
| 14804 | // .xla.Shape shape = 2; |
| 14805 | inline bool InfeedRequest::has_shape() const { |
| 14806 | return this != internal_default_instance() && shape_ != NULL; |
| 14807 | } |
| 14808 | inline void InfeedRequest::clear_shape() { |
| 14809 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 14810 | delete shape_; |
| 14811 | } |
| 14812 | shape_ = NULL; |
| 14813 | } |
| 14814 | inline const ::xla::Shape& InfeedRequest::shape() const { |
| 14815 | const ::xla::Shape* p = shape_; |
| 14816 | // @@protoc_insertion_point(field_get:xla.InfeedRequest.shape) |
| 14817 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 14818 | &::xla::_Shape_default_instance_); |
| 14819 | } |
| 14820 | inline ::xla::Shape* InfeedRequest::release_shape() { |
| 14821 | // @@protoc_insertion_point(field_release:xla.InfeedRequest.shape) |
| 14822 | |
| 14823 | ::xla::Shape* temp = shape_; |
| 14824 | if (GetArenaNoVirtual() != NULL) { |
| 14825 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14826 | } |
| 14827 | shape_ = NULL; |
| 14828 | return temp; |
| 14829 | } |
| 14830 | inline ::xla::Shape* InfeedRequest::unsafe_arena_release_shape() { |
| 14831 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.InfeedRequest.shape) |
| 14832 | |
| 14833 | ::xla::Shape* temp = shape_; |
| 14834 | shape_ = NULL; |
| 14835 | return temp; |
| 14836 | } |
| 14837 | inline ::xla::Shape* InfeedRequest::mutable_shape() { |
| 14838 | |
| 14839 | if (shape_ == NULL) { |
| 14840 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 14841 | GetArenaNoVirtual()); |
| 14842 | } |
| 14843 | // @@protoc_insertion_point(field_mutable:xla.InfeedRequest.shape) |
| 14844 | return shape_; |
| 14845 | } |
| 14846 | inline void InfeedRequest::set_allocated_shape(::xla::Shape* shape) { |
| 14847 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14848 | if (message_arena == NULL) { |
| 14849 | delete shape_; |
| 14850 | } |
| 14851 | if (shape) { |
| 14852 | ::google::protobuf::Arena* submessage_arena = |
| 14853 | ::google::protobuf::Arena::GetArena(shape); |
| 14854 | if (message_arena != submessage_arena) { |
| 14855 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 14856 | message_arena, shape, submessage_arena); |
| 14857 | } |
| 14858 | |
| 14859 | } else { |
| 14860 | |
| 14861 | } |
| 14862 | shape_ = shape; |
| 14863 | // @@protoc_insertion_point(field_set_allocated:xla.InfeedRequest.shape) |
| 14864 | } |
| 14865 | |
| 14866 | // bytes config = 3; |
| 14867 | inline void InfeedRequest::clear_config() { |
| 14868 | config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 14869 | } |
| 14870 | inline const ::std::string& InfeedRequest::config() const { |
| 14871 | // @@protoc_insertion_point(field_get:xla.InfeedRequest.config) |
| 14872 | return config_.Get(); |
| 14873 | } |
| 14874 | inline void InfeedRequest::set_config(const ::std::string& value) { |
| 14875 | |
| 14876 | config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 14877 | // @@protoc_insertion_point(field_set:xla.InfeedRequest.config) |
| 14878 | } |
| 14879 | #if LANG_CXX11 |
| 14880 | inline void InfeedRequest::set_config(::std::string&& value) { |
| 14881 | |
| 14882 | config_.Set( |
| 14883 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 14884 | // @@protoc_insertion_point(field_set_rvalue:xla.InfeedRequest.config) |
| 14885 | } |
| 14886 | #endif |
| 14887 | inline void InfeedRequest::set_config(const char* value) { |
| 14888 | GOOGLE_DCHECK(value != NULL); |
| 14889 | |
| 14890 | config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 14891 | GetArenaNoVirtual()); |
| 14892 | // @@protoc_insertion_point(field_set_char:xla.InfeedRequest.config) |
| 14893 | } |
| 14894 | inline void InfeedRequest::set_config(const void* value, |
| 14895 | size_t size) { |
| 14896 | |
| 14897 | config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 14898 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 14899 | // @@protoc_insertion_point(field_set_pointer:xla.InfeedRequest.config) |
| 14900 | } |
| 14901 | inline ::std::string* InfeedRequest::mutable_config() { |
| 14902 | |
| 14903 | // @@protoc_insertion_point(field_mutable:xla.InfeedRequest.config) |
| 14904 | return config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 14905 | } |
| 14906 | inline ::std::string* InfeedRequest::release_config() { |
| 14907 | // @@protoc_insertion_point(field_release:xla.InfeedRequest.config) |
| 14908 | |
| 14909 | return config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 14910 | } |
| 14911 | inline void InfeedRequest::set_allocated_config(::std::string* config) { |
| 14912 | if (config != NULL) { |
| 14913 | |
| 14914 | } else { |
| 14915 | |
| 14916 | } |
| 14917 | config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), config, |
| 14918 | GetArenaNoVirtual()); |
| 14919 | // @@protoc_insertion_point(field_set_allocated:xla.InfeedRequest.config) |
| 14920 | } |
| 14921 | inline ::std::string* InfeedRequest::unsafe_arena_release_config() { |
| 14922 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.InfeedRequest.config) |
| 14923 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 14924 | |
| 14925 | return config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14926 | GetArenaNoVirtual()); |
| 14927 | } |
| 14928 | inline void InfeedRequest::unsafe_arena_set_allocated_config( |
| 14929 | ::std::string* config) { |
| 14930 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 14931 | if (config != NULL) { |
| 14932 | |
| 14933 | } else { |
| 14934 | |
| 14935 | } |
| 14936 | config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14937 | config, GetArenaNoVirtual()); |
| 14938 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.InfeedRequest.config) |
| 14939 | } |
| 14940 | |
| 14941 | // ------------------------------------------------------------------- |
| 14942 | |
| 14943 | // OutfeedRequest |
| 14944 | |
| 14945 | // .xla.Shape shape = 1; |
| 14946 | inline bool OutfeedRequest::has_shape() const { |
| 14947 | return this != internal_default_instance() && shape_ != NULL; |
| 14948 | } |
| 14949 | inline void OutfeedRequest::clear_shape() { |
| 14950 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 14951 | delete shape_; |
| 14952 | } |
| 14953 | shape_ = NULL; |
| 14954 | } |
| 14955 | inline const ::xla::Shape& OutfeedRequest::shape() const { |
| 14956 | const ::xla::Shape* p = shape_; |
| 14957 | // @@protoc_insertion_point(field_get:xla.OutfeedRequest.shape) |
| 14958 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 14959 | &::xla::_Shape_default_instance_); |
| 14960 | } |
| 14961 | inline ::xla::Shape* OutfeedRequest::release_shape() { |
| 14962 | // @@protoc_insertion_point(field_release:xla.OutfeedRequest.shape) |
| 14963 | |
| 14964 | ::xla::Shape* temp = shape_; |
| 14965 | if (GetArenaNoVirtual() != NULL) { |
| 14966 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 14967 | } |
| 14968 | shape_ = NULL; |
| 14969 | return temp; |
| 14970 | } |
| 14971 | inline ::xla::Shape* OutfeedRequest::unsafe_arena_release_shape() { |
| 14972 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OutfeedRequest.shape) |
| 14973 | |
| 14974 | ::xla::Shape* temp = shape_; |
| 14975 | shape_ = NULL; |
| 14976 | return temp; |
| 14977 | } |
| 14978 | inline ::xla::Shape* OutfeedRequest::mutable_shape() { |
| 14979 | |
| 14980 | if (shape_ == NULL) { |
| 14981 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 14982 | GetArenaNoVirtual()); |
| 14983 | } |
| 14984 | // @@protoc_insertion_point(field_mutable:xla.OutfeedRequest.shape) |
| 14985 | return shape_; |
| 14986 | } |
| 14987 | inline void OutfeedRequest::set_allocated_shape(::xla::Shape* shape) { |
| 14988 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 14989 | if (message_arena == NULL) { |
| 14990 | delete shape_; |
| 14991 | } |
| 14992 | if (shape) { |
| 14993 | ::google::protobuf::Arena* submessage_arena = |
| 14994 | ::google::protobuf::Arena::GetArena(shape); |
| 14995 | if (message_arena != submessage_arena) { |
| 14996 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 14997 | message_arena, shape, submessage_arena); |
| 14998 | } |
| 14999 | |
| 15000 | } else { |
| 15001 | |
| 15002 | } |
| 15003 | shape_ = shape; |
| 15004 | // @@protoc_insertion_point(field_set_allocated:xla.OutfeedRequest.shape) |
| 15005 | } |
| 15006 | |
| 15007 | // .xla.ComputationDataHandle operand = 2; |
| 15008 | inline bool OutfeedRequest::has_operand() const { |
| 15009 | return this != internal_default_instance() && operand_ != NULL; |
| 15010 | } |
| 15011 | inline void OutfeedRequest::clear_operand() { |
| 15012 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 15013 | delete operand_; |
| 15014 | } |
| 15015 | operand_ = NULL; |
| 15016 | } |
| 15017 | inline const ::xla::ComputationDataHandle& OutfeedRequest::operand() const { |
| 15018 | const ::xla::ComputationDataHandle* p = operand_; |
| 15019 | // @@protoc_insertion_point(field_get:xla.OutfeedRequest.operand) |
| 15020 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 15021 | &::xla::_ComputationDataHandle_default_instance_); |
| 15022 | } |
| 15023 | inline ::xla::ComputationDataHandle* OutfeedRequest::release_operand() { |
| 15024 | // @@protoc_insertion_point(field_release:xla.OutfeedRequest.operand) |
| 15025 | |
| 15026 | ::xla::ComputationDataHandle* temp = operand_; |
| 15027 | if (GetArenaNoVirtual() != NULL) { |
| 15028 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15029 | } |
| 15030 | operand_ = NULL; |
| 15031 | return temp; |
| 15032 | } |
| 15033 | inline ::xla::ComputationDataHandle* OutfeedRequest::unsafe_arena_release_operand() { |
| 15034 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OutfeedRequest.operand) |
| 15035 | |
| 15036 | ::xla::ComputationDataHandle* temp = operand_; |
| 15037 | operand_ = NULL; |
| 15038 | return temp; |
| 15039 | } |
| 15040 | inline ::xla::ComputationDataHandle* OutfeedRequest::mutable_operand() { |
| 15041 | |
| 15042 | if (operand_ == NULL) { |
| 15043 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 15044 | GetArenaNoVirtual()); |
| 15045 | } |
| 15046 | // @@protoc_insertion_point(field_mutable:xla.OutfeedRequest.operand) |
| 15047 | return operand_; |
| 15048 | } |
| 15049 | inline void OutfeedRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 15050 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15051 | if (message_arena == NULL) { |
| 15052 | delete operand_; |
| 15053 | } |
| 15054 | if (operand) { |
| 15055 | ::google::protobuf::Arena* submessage_arena = |
| 15056 | ::google::protobuf::Arena::GetArena(operand); |
| 15057 | if (message_arena != submessage_arena) { |
| 15058 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 15059 | message_arena, operand, submessage_arena); |
| 15060 | } |
| 15061 | |
| 15062 | } else { |
| 15063 | |
| 15064 | } |
| 15065 | operand_ = operand; |
| 15066 | // @@protoc_insertion_point(field_set_allocated:xla.OutfeedRequest.operand) |
| 15067 | } |
| 15068 | |
| 15069 | // bytes outfeed_config = 3; |
| 15070 | inline void OutfeedRequest::clear_outfeed_config() { |
| 15071 | outfeed_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15072 | } |
| 15073 | inline const ::std::string& OutfeedRequest::outfeed_config() const { |
| 15074 | // @@protoc_insertion_point(field_get:xla.OutfeedRequest.outfeed_config) |
| 15075 | return outfeed_config_.Get(); |
| 15076 | } |
| 15077 | inline void OutfeedRequest::set_outfeed_config(const ::std::string& value) { |
| 15078 | |
| 15079 | outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 15080 | // @@protoc_insertion_point(field_set:xla.OutfeedRequest.outfeed_config) |
| 15081 | } |
| 15082 | #if LANG_CXX11 |
| 15083 | inline void OutfeedRequest::set_outfeed_config(::std::string&& value) { |
| 15084 | |
| 15085 | outfeed_config_.Set( |
| 15086 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 15087 | // @@protoc_insertion_point(field_set_rvalue:xla.OutfeedRequest.outfeed_config) |
| 15088 | } |
| 15089 | #endif |
| 15090 | inline void OutfeedRequest::set_outfeed_config(const char* value) { |
| 15091 | GOOGLE_DCHECK(value != NULL); |
| 15092 | |
| 15093 | outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 15094 | GetArenaNoVirtual()); |
| 15095 | // @@protoc_insertion_point(field_set_char:xla.OutfeedRequest.outfeed_config) |
| 15096 | } |
| 15097 | inline void OutfeedRequest::set_outfeed_config(const void* value, |
| 15098 | size_t size) { |
| 15099 | |
| 15100 | outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 15101 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 15102 | // @@protoc_insertion_point(field_set_pointer:xla.OutfeedRequest.outfeed_config) |
| 15103 | } |
| 15104 | inline ::std::string* OutfeedRequest::mutable_outfeed_config() { |
| 15105 | |
| 15106 | // @@protoc_insertion_point(field_mutable:xla.OutfeedRequest.outfeed_config) |
| 15107 | return outfeed_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15108 | } |
| 15109 | inline ::std::string* OutfeedRequest::release_outfeed_config() { |
| 15110 | // @@protoc_insertion_point(field_release:xla.OutfeedRequest.outfeed_config) |
| 15111 | |
| 15112 | return outfeed_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15113 | } |
| 15114 | inline void OutfeedRequest::set_allocated_outfeed_config(::std::string* outfeed_config) { |
| 15115 | if (outfeed_config != NULL) { |
| 15116 | |
| 15117 | } else { |
| 15118 | |
| 15119 | } |
| 15120 | outfeed_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), outfeed_config, |
| 15121 | GetArenaNoVirtual()); |
| 15122 | // @@protoc_insertion_point(field_set_allocated:xla.OutfeedRequest.outfeed_config) |
| 15123 | } |
| 15124 | inline ::std::string* OutfeedRequest::unsafe_arena_release_outfeed_config() { |
| 15125 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OutfeedRequest.outfeed_config) |
| 15126 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 15127 | |
| 15128 | return outfeed_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15129 | GetArenaNoVirtual()); |
| 15130 | } |
| 15131 | inline void OutfeedRequest::unsafe_arena_set_allocated_outfeed_config( |
| 15132 | ::std::string* outfeed_config) { |
| 15133 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 15134 | if (outfeed_config != NULL) { |
| 15135 | |
| 15136 | } else { |
| 15137 | |
| 15138 | } |
| 15139 | outfeed_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15140 | outfeed_config, GetArenaNoVirtual()); |
| 15141 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OutfeedRequest.outfeed_config) |
| 15142 | } |
| 15143 | |
| 15144 | // ------------------------------------------------------------------- |
| 15145 | |
| 15146 | // CallRequest |
| 15147 | |
| 15148 | // .xla.ComputationHandle to_apply = 2; |
| 15149 | inline bool CallRequest::has_to_apply() const { |
| 15150 | return this != internal_default_instance() && to_apply_ != NULL; |
| 15151 | } |
| 15152 | inline void CallRequest::clear_to_apply() { |
| 15153 | if (GetArenaNoVirtual() == NULL && to_apply_ != NULL) { |
| 15154 | delete to_apply_; |
| 15155 | } |
| 15156 | to_apply_ = NULL; |
| 15157 | } |
| 15158 | inline const ::xla::ComputationHandle& CallRequest::to_apply() const { |
| 15159 | const ::xla::ComputationHandle* p = to_apply_; |
| 15160 | // @@protoc_insertion_point(field_get:xla.CallRequest.to_apply) |
| 15161 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 15162 | &::xla::_ComputationHandle_default_instance_); |
| 15163 | } |
| 15164 | inline ::xla::ComputationHandle* CallRequest::release_to_apply() { |
| 15165 | // @@protoc_insertion_point(field_release:xla.CallRequest.to_apply) |
| 15166 | |
| 15167 | ::xla::ComputationHandle* temp = to_apply_; |
| 15168 | if (GetArenaNoVirtual() != NULL) { |
| 15169 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15170 | } |
| 15171 | to_apply_ = NULL; |
| 15172 | return temp; |
| 15173 | } |
| 15174 | inline ::xla::ComputationHandle* CallRequest::unsafe_arena_release_to_apply() { |
| 15175 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.CallRequest.to_apply) |
| 15176 | |
| 15177 | ::xla::ComputationHandle* temp = to_apply_; |
| 15178 | to_apply_ = NULL; |
| 15179 | return temp; |
| 15180 | } |
| 15181 | inline ::xla::ComputationHandle* CallRequest::mutable_to_apply() { |
| 15182 | |
| 15183 | if (to_apply_ == NULL) { |
| 15184 | to_apply_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 15185 | GetArenaNoVirtual()); |
| 15186 | } |
| 15187 | // @@protoc_insertion_point(field_mutable:xla.CallRequest.to_apply) |
| 15188 | return to_apply_; |
| 15189 | } |
| 15190 | inline void CallRequest::set_allocated_to_apply(::xla::ComputationHandle* to_apply) { |
| 15191 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15192 | if (message_arena == NULL) { |
| 15193 | delete to_apply_; |
| 15194 | } |
| 15195 | if (to_apply) { |
| 15196 | ::google::protobuf::Arena* submessage_arena = |
| 15197 | ::google::protobuf::Arena::GetArena(to_apply); |
| 15198 | if (message_arena != submessage_arena) { |
| 15199 | to_apply = ::google::protobuf::internal::GetOwnedMessage( |
| 15200 | message_arena, to_apply, submessage_arena); |
| 15201 | } |
| 15202 | |
| 15203 | } else { |
| 15204 | |
| 15205 | } |
| 15206 | to_apply_ = to_apply; |
| 15207 | // @@protoc_insertion_point(field_set_allocated:xla.CallRequest.to_apply) |
| 15208 | } |
| 15209 | |
| 15210 | // repeated .xla.ComputationDataHandle operands = 3; |
| 15211 | inline int CallRequest::operands_size() const { |
| 15212 | return operands_.size(); |
| 15213 | } |
| 15214 | inline void CallRequest::clear_operands() { |
| 15215 | operands_.Clear(); |
| 15216 | } |
| 15217 | inline ::xla::ComputationDataHandle* CallRequest::mutable_operands(int index) { |
| 15218 | // @@protoc_insertion_point(field_mutable:xla.CallRequest.operands) |
| 15219 | return operands_.Mutable(index); |
| 15220 | } |
| 15221 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 15222 | CallRequest::mutable_operands() { |
| 15223 | // @@protoc_insertion_point(field_mutable_list:xla.CallRequest.operands) |
| 15224 | return &operands_; |
| 15225 | } |
| 15226 | inline const ::xla::ComputationDataHandle& CallRequest::operands(int index) const { |
| 15227 | // @@protoc_insertion_point(field_get:xla.CallRequest.operands) |
| 15228 | return operands_.Get(index); |
| 15229 | } |
| 15230 | inline ::xla::ComputationDataHandle* CallRequest::add_operands() { |
| 15231 | // @@protoc_insertion_point(field_add:xla.CallRequest.operands) |
| 15232 | return operands_.Add(); |
| 15233 | } |
| 15234 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 15235 | CallRequest::operands() const { |
| 15236 | // @@protoc_insertion_point(field_list:xla.CallRequest.operands) |
| 15237 | return operands_; |
| 15238 | } |
| 15239 | |
| 15240 | // ------------------------------------------------------------------- |
| 15241 | |
| 15242 | // CustomCallRequest |
| 15243 | |
| 15244 | // string call_target_name = 2; |
| 15245 | inline void CustomCallRequest::clear_call_target_name() { |
| 15246 | call_target_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15247 | } |
| 15248 | inline const ::std::string& CustomCallRequest::call_target_name() const { |
| 15249 | // @@protoc_insertion_point(field_get:xla.CustomCallRequest.call_target_name) |
| 15250 | return call_target_name_.Get(); |
| 15251 | } |
| 15252 | inline void CustomCallRequest::set_call_target_name(const ::std::string& value) { |
| 15253 | |
| 15254 | call_target_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 15255 | // @@protoc_insertion_point(field_set:xla.CustomCallRequest.call_target_name) |
| 15256 | } |
| 15257 | #if LANG_CXX11 |
| 15258 | inline void CustomCallRequest::set_call_target_name(::std::string&& value) { |
| 15259 | |
| 15260 | call_target_name_.Set( |
| 15261 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 15262 | // @@protoc_insertion_point(field_set_rvalue:xla.CustomCallRequest.call_target_name) |
| 15263 | } |
| 15264 | #endif |
| 15265 | inline void CustomCallRequest::set_call_target_name(const char* value) { |
| 15266 | GOOGLE_DCHECK(value != NULL); |
| 15267 | |
| 15268 | call_target_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 15269 | GetArenaNoVirtual()); |
| 15270 | // @@protoc_insertion_point(field_set_char:xla.CustomCallRequest.call_target_name) |
| 15271 | } |
| 15272 | inline void CustomCallRequest::set_call_target_name(const char* value, |
| 15273 | size_t size) { |
| 15274 | |
| 15275 | call_target_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 15276 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 15277 | // @@protoc_insertion_point(field_set_pointer:xla.CustomCallRequest.call_target_name) |
| 15278 | } |
| 15279 | inline ::std::string* CustomCallRequest::mutable_call_target_name() { |
| 15280 | |
| 15281 | // @@protoc_insertion_point(field_mutable:xla.CustomCallRequest.call_target_name) |
| 15282 | return call_target_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15283 | } |
| 15284 | inline ::std::string* CustomCallRequest::release_call_target_name() { |
| 15285 | // @@protoc_insertion_point(field_release:xla.CustomCallRequest.call_target_name) |
| 15286 | |
| 15287 | return call_target_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15288 | } |
| 15289 | inline void CustomCallRequest::set_allocated_call_target_name(::std::string* call_target_name) { |
| 15290 | if (call_target_name != NULL) { |
| 15291 | |
| 15292 | } else { |
| 15293 | |
| 15294 | } |
| 15295 | call_target_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), call_target_name, |
| 15296 | GetArenaNoVirtual()); |
| 15297 | // @@protoc_insertion_point(field_set_allocated:xla.CustomCallRequest.call_target_name) |
| 15298 | } |
| 15299 | inline ::std::string* CustomCallRequest::unsafe_arena_release_call_target_name() { |
| 15300 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.CustomCallRequest.call_target_name) |
| 15301 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 15302 | |
| 15303 | return call_target_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15304 | GetArenaNoVirtual()); |
| 15305 | } |
| 15306 | inline void CustomCallRequest::unsafe_arena_set_allocated_call_target_name( |
| 15307 | ::std::string* call_target_name) { |
| 15308 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 15309 | if (call_target_name != NULL) { |
| 15310 | |
| 15311 | } else { |
| 15312 | |
| 15313 | } |
| 15314 | call_target_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15315 | call_target_name, GetArenaNoVirtual()); |
| 15316 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.CustomCallRequest.call_target_name) |
| 15317 | } |
| 15318 | |
| 15319 | // repeated .xla.ComputationDataHandle operands = 3; |
| 15320 | inline int CustomCallRequest::operands_size() const { |
| 15321 | return operands_.size(); |
| 15322 | } |
| 15323 | inline void CustomCallRequest::clear_operands() { |
| 15324 | operands_.Clear(); |
| 15325 | } |
| 15326 | inline ::xla::ComputationDataHandle* CustomCallRequest::mutable_operands(int index) { |
| 15327 | // @@protoc_insertion_point(field_mutable:xla.CustomCallRequest.operands) |
| 15328 | return operands_.Mutable(index); |
| 15329 | } |
| 15330 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 15331 | CustomCallRequest::mutable_operands() { |
| 15332 | // @@protoc_insertion_point(field_mutable_list:xla.CustomCallRequest.operands) |
| 15333 | return &operands_; |
| 15334 | } |
| 15335 | inline const ::xla::ComputationDataHandle& CustomCallRequest::operands(int index) const { |
| 15336 | // @@protoc_insertion_point(field_get:xla.CustomCallRequest.operands) |
| 15337 | return operands_.Get(index); |
| 15338 | } |
| 15339 | inline ::xla::ComputationDataHandle* CustomCallRequest::add_operands() { |
| 15340 | // @@protoc_insertion_point(field_add:xla.CustomCallRequest.operands) |
| 15341 | return operands_.Add(); |
| 15342 | } |
| 15343 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 15344 | CustomCallRequest::operands() const { |
| 15345 | // @@protoc_insertion_point(field_list:xla.CustomCallRequest.operands) |
| 15346 | return operands_; |
| 15347 | } |
| 15348 | |
| 15349 | // .xla.Shape shape = 4; |
| 15350 | inline bool CustomCallRequest::has_shape() const { |
| 15351 | return this != internal_default_instance() && shape_ != NULL; |
| 15352 | } |
| 15353 | inline void CustomCallRequest::clear_shape() { |
| 15354 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 15355 | delete shape_; |
| 15356 | } |
| 15357 | shape_ = NULL; |
| 15358 | } |
| 15359 | inline const ::xla::Shape& CustomCallRequest::shape() const { |
| 15360 | const ::xla::Shape* p = shape_; |
| 15361 | // @@protoc_insertion_point(field_get:xla.CustomCallRequest.shape) |
| 15362 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 15363 | &::xla::_Shape_default_instance_); |
| 15364 | } |
| 15365 | inline ::xla::Shape* CustomCallRequest::release_shape() { |
| 15366 | // @@protoc_insertion_point(field_release:xla.CustomCallRequest.shape) |
| 15367 | |
| 15368 | ::xla::Shape* temp = shape_; |
| 15369 | if (GetArenaNoVirtual() != NULL) { |
| 15370 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15371 | } |
| 15372 | shape_ = NULL; |
| 15373 | return temp; |
| 15374 | } |
| 15375 | inline ::xla::Shape* CustomCallRequest::unsafe_arena_release_shape() { |
| 15376 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.CustomCallRequest.shape) |
| 15377 | |
| 15378 | ::xla::Shape* temp = shape_; |
| 15379 | shape_ = NULL; |
| 15380 | return temp; |
| 15381 | } |
| 15382 | inline ::xla::Shape* CustomCallRequest::mutable_shape() { |
| 15383 | |
| 15384 | if (shape_ == NULL) { |
| 15385 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 15386 | GetArenaNoVirtual()); |
| 15387 | } |
| 15388 | // @@protoc_insertion_point(field_mutable:xla.CustomCallRequest.shape) |
| 15389 | return shape_; |
| 15390 | } |
| 15391 | inline void CustomCallRequest::set_allocated_shape(::xla::Shape* shape) { |
| 15392 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15393 | if (message_arena == NULL) { |
| 15394 | delete shape_; |
| 15395 | } |
| 15396 | if (shape) { |
| 15397 | ::google::protobuf::Arena* submessage_arena = |
| 15398 | ::google::protobuf::Arena::GetArena(shape); |
| 15399 | if (message_arena != submessage_arena) { |
| 15400 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 15401 | message_arena, shape, submessage_arena); |
| 15402 | } |
| 15403 | |
| 15404 | } else { |
| 15405 | |
| 15406 | } |
| 15407 | shape_ = shape; |
| 15408 | // @@protoc_insertion_point(field_set_allocated:xla.CustomCallRequest.shape) |
| 15409 | } |
| 15410 | |
| 15411 | // ------------------------------------------------------------------- |
| 15412 | |
| 15413 | // HostComputeRequest |
| 15414 | |
| 15415 | // repeated .xla.ComputationDataHandle operands = 1; |
| 15416 | inline int HostComputeRequest::operands_size() const { |
| 15417 | return operands_.size(); |
| 15418 | } |
| 15419 | inline void HostComputeRequest::clear_operands() { |
| 15420 | operands_.Clear(); |
| 15421 | } |
| 15422 | inline ::xla::ComputationDataHandle* HostComputeRequest::mutable_operands(int index) { |
| 15423 | // @@protoc_insertion_point(field_mutable:xla.HostComputeRequest.operands) |
| 15424 | return operands_.Mutable(index); |
| 15425 | } |
| 15426 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 15427 | HostComputeRequest::mutable_operands() { |
| 15428 | // @@protoc_insertion_point(field_mutable_list:xla.HostComputeRequest.operands) |
| 15429 | return &operands_; |
| 15430 | } |
| 15431 | inline const ::xla::ComputationDataHandle& HostComputeRequest::operands(int index) const { |
| 15432 | // @@protoc_insertion_point(field_get:xla.HostComputeRequest.operands) |
| 15433 | return operands_.Get(index); |
| 15434 | } |
| 15435 | inline ::xla::ComputationDataHandle* HostComputeRequest::add_operands() { |
| 15436 | // @@protoc_insertion_point(field_add:xla.HostComputeRequest.operands) |
| 15437 | return operands_.Add(); |
| 15438 | } |
| 15439 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 15440 | HostComputeRequest::operands() const { |
| 15441 | // @@protoc_insertion_point(field_list:xla.HostComputeRequest.operands) |
| 15442 | return operands_; |
| 15443 | } |
| 15444 | |
| 15445 | // string channel_name = 2; |
| 15446 | inline void HostComputeRequest::clear_channel_name() { |
| 15447 | channel_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15448 | } |
| 15449 | inline const ::std::string& HostComputeRequest::channel_name() const { |
| 15450 | // @@protoc_insertion_point(field_get:xla.HostComputeRequest.channel_name) |
| 15451 | return channel_name_.Get(); |
| 15452 | } |
| 15453 | inline void HostComputeRequest::set_channel_name(const ::std::string& value) { |
| 15454 | |
| 15455 | channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 15456 | // @@protoc_insertion_point(field_set:xla.HostComputeRequest.channel_name) |
| 15457 | } |
| 15458 | #if LANG_CXX11 |
| 15459 | inline void HostComputeRequest::set_channel_name(::std::string&& value) { |
| 15460 | |
| 15461 | channel_name_.Set( |
| 15462 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 15463 | // @@protoc_insertion_point(field_set_rvalue:xla.HostComputeRequest.channel_name) |
| 15464 | } |
| 15465 | #endif |
| 15466 | inline void HostComputeRequest::set_channel_name(const char* value) { |
| 15467 | GOOGLE_DCHECK(value != NULL); |
| 15468 | |
| 15469 | channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 15470 | GetArenaNoVirtual()); |
| 15471 | // @@protoc_insertion_point(field_set_char:xla.HostComputeRequest.channel_name) |
| 15472 | } |
| 15473 | inline void HostComputeRequest::set_channel_name(const char* value, |
| 15474 | size_t size) { |
| 15475 | |
| 15476 | channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 15477 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 15478 | // @@protoc_insertion_point(field_set_pointer:xla.HostComputeRequest.channel_name) |
| 15479 | } |
| 15480 | inline ::std::string* HostComputeRequest::mutable_channel_name() { |
| 15481 | |
| 15482 | // @@protoc_insertion_point(field_mutable:xla.HostComputeRequest.channel_name) |
| 15483 | return channel_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15484 | } |
| 15485 | inline ::std::string* HostComputeRequest::release_channel_name() { |
| 15486 | // @@protoc_insertion_point(field_release:xla.HostComputeRequest.channel_name) |
| 15487 | |
| 15488 | return channel_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 15489 | } |
| 15490 | inline void HostComputeRequest::set_allocated_channel_name(::std::string* channel_name) { |
| 15491 | if (channel_name != NULL) { |
| 15492 | |
| 15493 | } else { |
| 15494 | |
| 15495 | } |
| 15496 | channel_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), channel_name, |
| 15497 | GetArenaNoVirtual()); |
| 15498 | // @@protoc_insertion_point(field_set_allocated:xla.HostComputeRequest.channel_name) |
| 15499 | } |
| 15500 | inline ::std::string* HostComputeRequest::unsafe_arena_release_channel_name() { |
| 15501 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.HostComputeRequest.channel_name) |
| 15502 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 15503 | |
| 15504 | return channel_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15505 | GetArenaNoVirtual()); |
| 15506 | } |
| 15507 | inline void HostComputeRequest::unsafe_arena_set_allocated_channel_name( |
| 15508 | ::std::string* channel_name) { |
| 15509 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 15510 | if (channel_name != NULL) { |
| 15511 | |
| 15512 | } else { |
| 15513 | |
| 15514 | } |
| 15515 | channel_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15516 | channel_name, GetArenaNoVirtual()); |
| 15517 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HostComputeRequest.channel_name) |
| 15518 | } |
| 15519 | |
| 15520 | // int64 cost_estimate_ns = 3; |
| 15521 | inline void HostComputeRequest::clear_cost_estimate_ns() { |
| 15522 | cost_estimate_ns_ = GOOGLE_LONGLONG(0); |
| 15523 | } |
| 15524 | inline ::google::protobuf::int64 HostComputeRequest::cost_estimate_ns() const { |
| 15525 | // @@protoc_insertion_point(field_get:xla.HostComputeRequest.cost_estimate_ns) |
| 15526 | return cost_estimate_ns_; |
| 15527 | } |
| 15528 | inline void HostComputeRequest::set_cost_estimate_ns(::google::protobuf::int64 value) { |
| 15529 | |
| 15530 | cost_estimate_ns_ = value; |
| 15531 | // @@protoc_insertion_point(field_set:xla.HostComputeRequest.cost_estimate_ns) |
| 15532 | } |
| 15533 | |
| 15534 | // .xla.Shape shape = 4; |
| 15535 | inline bool HostComputeRequest::has_shape() const { |
| 15536 | return this != internal_default_instance() && shape_ != NULL; |
| 15537 | } |
| 15538 | inline void HostComputeRequest::clear_shape() { |
| 15539 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 15540 | delete shape_; |
| 15541 | } |
| 15542 | shape_ = NULL; |
| 15543 | } |
| 15544 | inline const ::xla::Shape& HostComputeRequest::shape() const { |
| 15545 | const ::xla::Shape* p = shape_; |
| 15546 | // @@protoc_insertion_point(field_get:xla.HostComputeRequest.shape) |
| 15547 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 15548 | &::xla::_Shape_default_instance_); |
| 15549 | } |
| 15550 | inline ::xla::Shape* HostComputeRequest::release_shape() { |
| 15551 | // @@protoc_insertion_point(field_release:xla.HostComputeRequest.shape) |
| 15552 | |
| 15553 | ::xla::Shape* temp = shape_; |
| 15554 | if (GetArenaNoVirtual() != NULL) { |
| 15555 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15556 | } |
| 15557 | shape_ = NULL; |
| 15558 | return temp; |
| 15559 | } |
| 15560 | inline ::xla::Shape* HostComputeRequest::unsafe_arena_release_shape() { |
| 15561 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.HostComputeRequest.shape) |
| 15562 | |
| 15563 | ::xla::Shape* temp = shape_; |
| 15564 | shape_ = NULL; |
| 15565 | return temp; |
| 15566 | } |
| 15567 | inline ::xla::Shape* HostComputeRequest::mutable_shape() { |
| 15568 | |
| 15569 | if (shape_ == NULL) { |
| 15570 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 15571 | GetArenaNoVirtual()); |
| 15572 | } |
| 15573 | // @@protoc_insertion_point(field_mutable:xla.HostComputeRequest.shape) |
| 15574 | return shape_; |
| 15575 | } |
| 15576 | inline void HostComputeRequest::set_allocated_shape(::xla::Shape* shape) { |
| 15577 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15578 | if (message_arena == NULL) { |
| 15579 | delete shape_; |
| 15580 | } |
| 15581 | if (shape) { |
| 15582 | ::google::protobuf::Arena* submessage_arena = |
| 15583 | ::google::protobuf::Arena::GetArena(shape); |
| 15584 | if (message_arena != submessage_arena) { |
| 15585 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 15586 | message_arena, shape, submessage_arena); |
| 15587 | } |
| 15588 | |
| 15589 | } else { |
| 15590 | |
| 15591 | } |
| 15592 | shape_ = shape; |
| 15593 | // @@protoc_insertion_point(field_set_allocated:xla.HostComputeRequest.shape) |
| 15594 | } |
| 15595 | |
| 15596 | // ------------------------------------------------------------------- |
| 15597 | |
| 15598 | // DotDimensionNumbers |
| 15599 | |
| 15600 | // repeated int64 lhs_contracting_dimensions = 1; |
| 15601 | inline int DotDimensionNumbers::lhs_contracting_dimensions_size() const { |
| 15602 | return lhs_contracting_dimensions_.size(); |
| 15603 | } |
| 15604 | inline void DotDimensionNumbers::clear_lhs_contracting_dimensions() { |
| 15605 | lhs_contracting_dimensions_.Clear(); |
| 15606 | } |
| 15607 | inline ::google::protobuf::int64 DotDimensionNumbers::lhs_contracting_dimensions(int index) const { |
| 15608 | // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.lhs_contracting_dimensions) |
| 15609 | return lhs_contracting_dimensions_.Get(index); |
| 15610 | } |
| 15611 | inline void DotDimensionNumbers::set_lhs_contracting_dimensions(int index, ::google::protobuf::int64 value) { |
| 15612 | lhs_contracting_dimensions_.Set(index, value); |
| 15613 | // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.lhs_contracting_dimensions) |
| 15614 | } |
| 15615 | inline void DotDimensionNumbers::add_lhs_contracting_dimensions(::google::protobuf::int64 value) { |
| 15616 | lhs_contracting_dimensions_.Add(value); |
| 15617 | // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.lhs_contracting_dimensions) |
| 15618 | } |
| 15619 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 15620 | DotDimensionNumbers::lhs_contracting_dimensions() const { |
| 15621 | // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.lhs_contracting_dimensions) |
| 15622 | return lhs_contracting_dimensions_; |
| 15623 | } |
| 15624 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 15625 | DotDimensionNumbers::mutable_lhs_contracting_dimensions() { |
| 15626 | // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.lhs_contracting_dimensions) |
| 15627 | return &lhs_contracting_dimensions_; |
| 15628 | } |
| 15629 | |
| 15630 | // repeated int64 rhs_contracting_dimensions = 2; |
| 15631 | inline int DotDimensionNumbers::rhs_contracting_dimensions_size() const { |
| 15632 | return rhs_contracting_dimensions_.size(); |
| 15633 | } |
| 15634 | inline void DotDimensionNumbers::clear_rhs_contracting_dimensions() { |
| 15635 | rhs_contracting_dimensions_.Clear(); |
| 15636 | } |
| 15637 | inline ::google::protobuf::int64 DotDimensionNumbers::rhs_contracting_dimensions(int index) const { |
| 15638 | // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.rhs_contracting_dimensions) |
| 15639 | return rhs_contracting_dimensions_.Get(index); |
| 15640 | } |
| 15641 | inline void DotDimensionNumbers::set_rhs_contracting_dimensions(int index, ::google::protobuf::int64 value) { |
| 15642 | rhs_contracting_dimensions_.Set(index, value); |
| 15643 | // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.rhs_contracting_dimensions) |
| 15644 | } |
| 15645 | inline void DotDimensionNumbers::add_rhs_contracting_dimensions(::google::protobuf::int64 value) { |
| 15646 | rhs_contracting_dimensions_.Add(value); |
| 15647 | // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.rhs_contracting_dimensions) |
| 15648 | } |
| 15649 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 15650 | DotDimensionNumbers::rhs_contracting_dimensions() const { |
| 15651 | // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.rhs_contracting_dimensions) |
| 15652 | return rhs_contracting_dimensions_; |
| 15653 | } |
| 15654 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 15655 | DotDimensionNumbers::mutable_rhs_contracting_dimensions() { |
| 15656 | // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.rhs_contracting_dimensions) |
| 15657 | return &rhs_contracting_dimensions_; |
| 15658 | } |
| 15659 | |
| 15660 | // repeated int64 lhs_batch_dimensions = 3; |
| 15661 | inline int DotDimensionNumbers::lhs_batch_dimensions_size() const { |
| 15662 | return lhs_batch_dimensions_.size(); |
| 15663 | } |
| 15664 | inline void DotDimensionNumbers::clear_lhs_batch_dimensions() { |
| 15665 | lhs_batch_dimensions_.Clear(); |
| 15666 | } |
| 15667 | inline ::google::protobuf::int64 DotDimensionNumbers::lhs_batch_dimensions(int index) const { |
| 15668 | // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.lhs_batch_dimensions) |
| 15669 | return lhs_batch_dimensions_.Get(index); |
| 15670 | } |
| 15671 | inline void DotDimensionNumbers::set_lhs_batch_dimensions(int index, ::google::protobuf::int64 value) { |
| 15672 | lhs_batch_dimensions_.Set(index, value); |
| 15673 | // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.lhs_batch_dimensions) |
| 15674 | } |
| 15675 | inline void DotDimensionNumbers::add_lhs_batch_dimensions(::google::protobuf::int64 value) { |
| 15676 | lhs_batch_dimensions_.Add(value); |
| 15677 | // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.lhs_batch_dimensions) |
| 15678 | } |
| 15679 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 15680 | DotDimensionNumbers::lhs_batch_dimensions() const { |
| 15681 | // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.lhs_batch_dimensions) |
| 15682 | return lhs_batch_dimensions_; |
| 15683 | } |
| 15684 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 15685 | DotDimensionNumbers::mutable_lhs_batch_dimensions() { |
| 15686 | // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.lhs_batch_dimensions) |
| 15687 | return &lhs_batch_dimensions_; |
| 15688 | } |
| 15689 | |
| 15690 | // repeated int64 rhs_batch_dimensions = 4; |
| 15691 | inline int DotDimensionNumbers::rhs_batch_dimensions_size() const { |
| 15692 | return rhs_batch_dimensions_.size(); |
| 15693 | } |
| 15694 | inline void DotDimensionNumbers::clear_rhs_batch_dimensions() { |
| 15695 | rhs_batch_dimensions_.Clear(); |
| 15696 | } |
| 15697 | inline ::google::protobuf::int64 DotDimensionNumbers::rhs_batch_dimensions(int index) const { |
| 15698 | // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.rhs_batch_dimensions) |
| 15699 | return rhs_batch_dimensions_.Get(index); |
| 15700 | } |
| 15701 | inline void DotDimensionNumbers::set_rhs_batch_dimensions(int index, ::google::protobuf::int64 value) { |
| 15702 | rhs_batch_dimensions_.Set(index, value); |
| 15703 | // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.rhs_batch_dimensions) |
| 15704 | } |
| 15705 | inline void DotDimensionNumbers::add_rhs_batch_dimensions(::google::protobuf::int64 value) { |
| 15706 | rhs_batch_dimensions_.Add(value); |
| 15707 | // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.rhs_batch_dimensions) |
| 15708 | } |
| 15709 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 15710 | DotDimensionNumbers::rhs_batch_dimensions() const { |
| 15711 | // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.rhs_batch_dimensions) |
| 15712 | return rhs_batch_dimensions_; |
| 15713 | } |
| 15714 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 15715 | DotDimensionNumbers::mutable_rhs_batch_dimensions() { |
| 15716 | // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.rhs_batch_dimensions) |
| 15717 | return &rhs_batch_dimensions_; |
| 15718 | } |
| 15719 | |
| 15720 | // ------------------------------------------------------------------- |
| 15721 | |
| 15722 | // DotRequest |
| 15723 | |
| 15724 | // .xla.ComputationDataHandle lhs = 2; |
| 15725 | inline bool DotRequest::has_lhs() const { |
| 15726 | return this != internal_default_instance() && lhs_ != NULL; |
| 15727 | } |
| 15728 | inline void DotRequest::clear_lhs() { |
| 15729 | if (GetArenaNoVirtual() == NULL && lhs_ != NULL) { |
| 15730 | delete lhs_; |
| 15731 | } |
| 15732 | lhs_ = NULL; |
| 15733 | } |
| 15734 | inline const ::xla::ComputationDataHandle& DotRequest::lhs() const { |
| 15735 | const ::xla::ComputationDataHandle* p = lhs_; |
| 15736 | // @@protoc_insertion_point(field_get:xla.DotRequest.lhs) |
| 15737 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 15738 | &::xla::_ComputationDataHandle_default_instance_); |
| 15739 | } |
| 15740 | inline ::xla::ComputationDataHandle* DotRequest::release_lhs() { |
| 15741 | // @@protoc_insertion_point(field_release:xla.DotRequest.lhs) |
| 15742 | |
| 15743 | ::xla::ComputationDataHandle* temp = lhs_; |
| 15744 | if (GetArenaNoVirtual() != NULL) { |
| 15745 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15746 | } |
| 15747 | lhs_ = NULL; |
| 15748 | return temp; |
| 15749 | } |
| 15750 | inline ::xla::ComputationDataHandle* DotRequest::unsafe_arena_release_lhs() { |
| 15751 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DotRequest.lhs) |
| 15752 | |
| 15753 | ::xla::ComputationDataHandle* temp = lhs_; |
| 15754 | lhs_ = NULL; |
| 15755 | return temp; |
| 15756 | } |
| 15757 | inline ::xla::ComputationDataHandle* DotRequest::mutable_lhs() { |
| 15758 | |
| 15759 | if (lhs_ == NULL) { |
| 15760 | lhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 15761 | GetArenaNoVirtual()); |
| 15762 | } |
| 15763 | // @@protoc_insertion_point(field_mutable:xla.DotRequest.lhs) |
| 15764 | return lhs_; |
| 15765 | } |
| 15766 | inline void DotRequest::set_allocated_lhs(::xla::ComputationDataHandle* lhs) { |
| 15767 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15768 | if (message_arena == NULL) { |
| 15769 | delete lhs_; |
| 15770 | } |
| 15771 | if (lhs) { |
| 15772 | ::google::protobuf::Arena* submessage_arena = |
| 15773 | ::google::protobuf::Arena::GetArena(lhs); |
| 15774 | if (message_arena != submessage_arena) { |
| 15775 | lhs = ::google::protobuf::internal::GetOwnedMessage( |
| 15776 | message_arena, lhs, submessage_arena); |
| 15777 | } |
| 15778 | |
| 15779 | } else { |
| 15780 | |
| 15781 | } |
| 15782 | lhs_ = lhs; |
| 15783 | // @@protoc_insertion_point(field_set_allocated:xla.DotRequest.lhs) |
| 15784 | } |
| 15785 | |
| 15786 | // .xla.ComputationDataHandle rhs = 3; |
| 15787 | inline bool DotRequest::has_rhs() const { |
| 15788 | return this != internal_default_instance() && rhs_ != NULL; |
| 15789 | } |
| 15790 | inline void DotRequest::clear_rhs() { |
| 15791 | if (GetArenaNoVirtual() == NULL && rhs_ != NULL) { |
| 15792 | delete rhs_; |
| 15793 | } |
| 15794 | rhs_ = NULL; |
| 15795 | } |
| 15796 | inline const ::xla::ComputationDataHandle& DotRequest::rhs() const { |
| 15797 | const ::xla::ComputationDataHandle* p = rhs_; |
| 15798 | // @@protoc_insertion_point(field_get:xla.DotRequest.rhs) |
| 15799 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 15800 | &::xla::_ComputationDataHandle_default_instance_); |
| 15801 | } |
| 15802 | inline ::xla::ComputationDataHandle* DotRequest::release_rhs() { |
| 15803 | // @@protoc_insertion_point(field_release:xla.DotRequest.rhs) |
| 15804 | |
| 15805 | ::xla::ComputationDataHandle* temp = rhs_; |
| 15806 | if (GetArenaNoVirtual() != NULL) { |
| 15807 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15808 | } |
| 15809 | rhs_ = NULL; |
| 15810 | return temp; |
| 15811 | } |
| 15812 | inline ::xla::ComputationDataHandle* DotRequest::unsafe_arena_release_rhs() { |
| 15813 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DotRequest.rhs) |
| 15814 | |
| 15815 | ::xla::ComputationDataHandle* temp = rhs_; |
| 15816 | rhs_ = NULL; |
| 15817 | return temp; |
| 15818 | } |
| 15819 | inline ::xla::ComputationDataHandle* DotRequest::mutable_rhs() { |
| 15820 | |
| 15821 | if (rhs_ == NULL) { |
| 15822 | rhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 15823 | GetArenaNoVirtual()); |
| 15824 | } |
| 15825 | // @@protoc_insertion_point(field_mutable:xla.DotRequest.rhs) |
| 15826 | return rhs_; |
| 15827 | } |
| 15828 | inline void DotRequest::set_allocated_rhs(::xla::ComputationDataHandle* rhs) { |
| 15829 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15830 | if (message_arena == NULL) { |
| 15831 | delete rhs_; |
| 15832 | } |
| 15833 | if (rhs) { |
| 15834 | ::google::protobuf::Arena* submessage_arena = |
| 15835 | ::google::protobuf::Arena::GetArena(rhs); |
| 15836 | if (message_arena != submessage_arena) { |
| 15837 | rhs = ::google::protobuf::internal::GetOwnedMessage( |
| 15838 | message_arena, rhs, submessage_arena); |
| 15839 | } |
| 15840 | |
| 15841 | } else { |
| 15842 | |
| 15843 | } |
| 15844 | rhs_ = rhs; |
| 15845 | // @@protoc_insertion_point(field_set_allocated:xla.DotRequest.rhs) |
| 15846 | } |
| 15847 | |
| 15848 | // .xla.DotDimensionNumbers dimension_numbers = 4; |
| 15849 | inline bool DotRequest::has_dimension_numbers() const { |
| 15850 | return this != internal_default_instance() && dimension_numbers_ != NULL; |
| 15851 | } |
| 15852 | inline void DotRequest::clear_dimension_numbers() { |
| 15853 | if (GetArenaNoVirtual() == NULL && dimension_numbers_ != NULL) { |
| 15854 | delete dimension_numbers_; |
| 15855 | } |
| 15856 | dimension_numbers_ = NULL; |
| 15857 | } |
| 15858 | inline const ::xla::DotDimensionNumbers& DotRequest::dimension_numbers() const { |
| 15859 | const ::xla::DotDimensionNumbers* p = dimension_numbers_; |
| 15860 | // @@protoc_insertion_point(field_get:xla.DotRequest.dimension_numbers) |
| 15861 | return p != NULL ? *p : *reinterpret_cast<const ::xla::DotDimensionNumbers*>( |
| 15862 | &::xla::_DotDimensionNumbers_default_instance_); |
| 15863 | } |
| 15864 | inline ::xla::DotDimensionNumbers* DotRequest::release_dimension_numbers() { |
| 15865 | // @@protoc_insertion_point(field_release:xla.DotRequest.dimension_numbers) |
| 15866 | |
| 15867 | ::xla::DotDimensionNumbers* temp = dimension_numbers_; |
| 15868 | if (GetArenaNoVirtual() != NULL) { |
| 15869 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15870 | } |
| 15871 | dimension_numbers_ = NULL; |
| 15872 | return temp; |
| 15873 | } |
| 15874 | inline ::xla::DotDimensionNumbers* DotRequest::unsafe_arena_release_dimension_numbers() { |
| 15875 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.DotRequest.dimension_numbers) |
| 15876 | |
| 15877 | ::xla::DotDimensionNumbers* temp = dimension_numbers_; |
| 15878 | dimension_numbers_ = NULL; |
| 15879 | return temp; |
| 15880 | } |
| 15881 | inline ::xla::DotDimensionNumbers* DotRequest::mutable_dimension_numbers() { |
| 15882 | |
| 15883 | if (dimension_numbers_ == NULL) { |
| 15884 | dimension_numbers_ = ::google::protobuf::Arena::CreateMessage< ::xla::DotDimensionNumbers >( |
| 15885 | GetArenaNoVirtual()); |
| 15886 | } |
| 15887 | // @@protoc_insertion_point(field_mutable:xla.DotRequest.dimension_numbers) |
| 15888 | return dimension_numbers_; |
| 15889 | } |
| 15890 | inline void DotRequest::set_allocated_dimension_numbers(::xla::DotDimensionNumbers* dimension_numbers) { |
| 15891 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15892 | if (message_arena == NULL) { |
| 15893 | delete dimension_numbers_; |
| 15894 | } |
| 15895 | if (dimension_numbers) { |
| 15896 | ::google::protobuf::Arena* submessage_arena = |
| 15897 | ::google::protobuf::Arena::GetArena(dimension_numbers); |
| 15898 | if (message_arena != submessage_arena) { |
| 15899 | dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( |
| 15900 | message_arena, dimension_numbers, submessage_arena); |
| 15901 | } |
| 15902 | |
| 15903 | } else { |
| 15904 | |
| 15905 | } |
| 15906 | dimension_numbers_ = dimension_numbers; |
| 15907 | // @@protoc_insertion_point(field_set_allocated:xla.DotRequest.dimension_numbers) |
| 15908 | } |
| 15909 | |
| 15910 | // ------------------------------------------------------------------- |
| 15911 | |
| 15912 | // MapRequest |
| 15913 | |
| 15914 | // repeated .xla.ComputationDataHandle operands = 2; |
| 15915 | inline int MapRequest::operands_size() const { |
| 15916 | return operands_.size(); |
| 15917 | } |
| 15918 | inline void MapRequest::clear_operands() { |
| 15919 | operands_.Clear(); |
| 15920 | } |
| 15921 | inline ::xla::ComputationDataHandle* MapRequest::mutable_operands(int index) { |
| 15922 | // @@protoc_insertion_point(field_mutable:xla.MapRequest.operands) |
| 15923 | return operands_.Mutable(index); |
| 15924 | } |
| 15925 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 15926 | MapRequest::mutable_operands() { |
| 15927 | // @@protoc_insertion_point(field_mutable_list:xla.MapRequest.operands) |
| 15928 | return &operands_; |
| 15929 | } |
| 15930 | inline const ::xla::ComputationDataHandle& MapRequest::operands(int index) const { |
| 15931 | // @@protoc_insertion_point(field_get:xla.MapRequest.operands) |
| 15932 | return operands_.Get(index); |
| 15933 | } |
| 15934 | inline ::xla::ComputationDataHandle* MapRequest::add_operands() { |
| 15935 | // @@protoc_insertion_point(field_add:xla.MapRequest.operands) |
| 15936 | return operands_.Add(); |
| 15937 | } |
| 15938 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 15939 | MapRequest::operands() const { |
| 15940 | // @@protoc_insertion_point(field_list:xla.MapRequest.operands) |
| 15941 | return operands_; |
| 15942 | } |
| 15943 | |
| 15944 | // .xla.ComputationHandle to_apply = 3; |
| 15945 | inline bool MapRequest::has_to_apply() const { |
| 15946 | return this != internal_default_instance() && to_apply_ != NULL; |
| 15947 | } |
| 15948 | inline void MapRequest::clear_to_apply() { |
| 15949 | if (GetArenaNoVirtual() == NULL && to_apply_ != NULL) { |
| 15950 | delete to_apply_; |
| 15951 | } |
| 15952 | to_apply_ = NULL; |
| 15953 | } |
| 15954 | inline const ::xla::ComputationHandle& MapRequest::to_apply() const { |
| 15955 | const ::xla::ComputationHandle* p = to_apply_; |
| 15956 | // @@protoc_insertion_point(field_get:xla.MapRequest.to_apply) |
| 15957 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 15958 | &::xla::_ComputationHandle_default_instance_); |
| 15959 | } |
| 15960 | inline ::xla::ComputationHandle* MapRequest::release_to_apply() { |
| 15961 | // @@protoc_insertion_point(field_release:xla.MapRequest.to_apply) |
| 15962 | |
| 15963 | ::xla::ComputationHandle* temp = to_apply_; |
| 15964 | if (GetArenaNoVirtual() != NULL) { |
| 15965 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 15966 | } |
| 15967 | to_apply_ = NULL; |
| 15968 | return temp; |
| 15969 | } |
| 15970 | inline ::xla::ComputationHandle* MapRequest::unsafe_arena_release_to_apply() { |
| 15971 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.MapRequest.to_apply) |
| 15972 | |
| 15973 | ::xla::ComputationHandle* temp = to_apply_; |
| 15974 | to_apply_ = NULL; |
| 15975 | return temp; |
| 15976 | } |
| 15977 | inline ::xla::ComputationHandle* MapRequest::mutable_to_apply() { |
| 15978 | |
| 15979 | if (to_apply_ == NULL) { |
| 15980 | to_apply_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 15981 | GetArenaNoVirtual()); |
| 15982 | } |
| 15983 | // @@protoc_insertion_point(field_mutable:xla.MapRequest.to_apply) |
| 15984 | return to_apply_; |
| 15985 | } |
| 15986 | inline void MapRequest::set_allocated_to_apply(::xla::ComputationHandle* to_apply) { |
| 15987 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 15988 | if (message_arena == NULL) { |
| 15989 | delete to_apply_; |
| 15990 | } |
| 15991 | if (to_apply) { |
| 15992 | ::google::protobuf::Arena* submessage_arena = |
| 15993 | ::google::protobuf::Arena::GetArena(to_apply); |
| 15994 | if (message_arena != submessage_arena) { |
| 15995 | to_apply = ::google::protobuf::internal::GetOwnedMessage( |
| 15996 | message_arena, to_apply, submessage_arena); |
| 15997 | } |
| 15998 | |
| 15999 | } else { |
| 16000 | |
| 16001 | } |
| 16002 | to_apply_ = to_apply; |
| 16003 | // @@protoc_insertion_point(field_set_allocated:xla.MapRequest.to_apply) |
| 16004 | } |
| 16005 | |
| 16006 | // repeated .xla.ComputationDataHandle static_operands = 4; |
| 16007 | inline int MapRequest::static_operands_size() const { |
| 16008 | return static_operands_.size(); |
| 16009 | } |
| 16010 | inline void MapRequest::clear_static_operands() { |
| 16011 | static_operands_.Clear(); |
| 16012 | } |
| 16013 | inline ::xla::ComputationDataHandle* MapRequest::mutable_static_operands(int index) { |
| 16014 | // @@protoc_insertion_point(field_mutable:xla.MapRequest.static_operands) |
| 16015 | return static_operands_.Mutable(index); |
| 16016 | } |
| 16017 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 16018 | MapRequest::mutable_static_operands() { |
| 16019 | // @@protoc_insertion_point(field_mutable_list:xla.MapRequest.static_operands) |
| 16020 | return &static_operands_; |
| 16021 | } |
| 16022 | inline const ::xla::ComputationDataHandle& MapRequest::static_operands(int index) const { |
| 16023 | // @@protoc_insertion_point(field_get:xla.MapRequest.static_operands) |
| 16024 | return static_operands_.Get(index); |
| 16025 | } |
| 16026 | inline ::xla::ComputationDataHandle* MapRequest::add_static_operands() { |
| 16027 | // @@protoc_insertion_point(field_add:xla.MapRequest.static_operands) |
| 16028 | return static_operands_.Add(); |
| 16029 | } |
| 16030 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 16031 | MapRequest::static_operands() const { |
| 16032 | // @@protoc_insertion_point(field_list:xla.MapRequest.static_operands) |
| 16033 | return static_operands_; |
| 16034 | } |
| 16035 | |
| 16036 | // repeated int64 dimensions = 5; |
| 16037 | inline int MapRequest::dimensions_size() const { |
| 16038 | return dimensions_.size(); |
| 16039 | } |
| 16040 | inline void MapRequest::clear_dimensions() { |
| 16041 | dimensions_.Clear(); |
| 16042 | } |
| 16043 | inline ::google::protobuf::int64 MapRequest::dimensions(int index) const { |
| 16044 | // @@protoc_insertion_point(field_get:xla.MapRequest.dimensions) |
| 16045 | return dimensions_.Get(index); |
| 16046 | } |
| 16047 | inline void MapRequest::set_dimensions(int index, ::google::protobuf::int64 value) { |
| 16048 | dimensions_.Set(index, value); |
| 16049 | // @@protoc_insertion_point(field_set:xla.MapRequest.dimensions) |
| 16050 | } |
| 16051 | inline void MapRequest::add_dimensions(::google::protobuf::int64 value) { |
| 16052 | dimensions_.Add(value); |
| 16053 | // @@protoc_insertion_point(field_add:xla.MapRequest.dimensions) |
| 16054 | } |
| 16055 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 16056 | MapRequest::dimensions() const { |
| 16057 | // @@protoc_insertion_point(field_list:xla.MapRequest.dimensions) |
| 16058 | return dimensions_; |
| 16059 | } |
| 16060 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 16061 | MapRequest::mutable_dimensions() { |
| 16062 | // @@protoc_insertion_point(field_mutable_list:xla.MapRequest.dimensions) |
| 16063 | return &dimensions_; |
| 16064 | } |
| 16065 | |
| 16066 | // ------------------------------------------------------------------- |
| 16067 | |
| 16068 | // ReduceRequest |
| 16069 | |
| 16070 | // .xla.ComputationDataHandle operand = 2; |
| 16071 | inline bool ReduceRequest::has_operand() const { |
| 16072 | return this != internal_default_instance() && operand_ != NULL; |
| 16073 | } |
| 16074 | inline void ReduceRequest::clear_operand() { |
| 16075 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 16076 | delete operand_; |
| 16077 | } |
| 16078 | operand_ = NULL; |
| 16079 | } |
| 16080 | inline const ::xla::ComputationDataHandle& ReduceRequest::operand() const { |
| 16081 | const ::xla::ComputationDataHandle* p = operand_; |
| 16082 | // @@protoc_insertion_point(field_get:xla.ReduceRequest.operand) |
| 16083 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16084 | &::xla::_ComputationDataHandle_default_instance_); |
| 16085 | } |
| 16086 | inline ::xla::ComputationDataHandle* ReduceRequest::release_operand() { |
| 16087 | // @@protoc_insertion_point(field_release:xla.ReduceRequest.operand) |
| 16088 | |
| 16089 | ::xla::ComputationDataHandle* temp = operand_; |
| 16090 | if (GetArenaNoVirtual() != NULL) { |
| 16091 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16092 | } |
| 16093 | operand_ = NULL; |
| 16094 | return temp; |
| 16095 | } |
| 16096 | inline ::xla::ComputationDataHandle* ReduceRequest::unsafe_arena_release_operand() { |
| 16097 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceRequest.operand) |
| 16098 | |
| 16099 | ::xla::ComputationDataHandle* temp = operand_; |
| 16100 | operand_ = NULL; |
| 16101 | return temp; |
| 16102 | } |
| 16103 | inline ::xla::ComputationDataHandle* ReduceRequest::mutable_operand() { |
| 16104 | |
| 16105 | if (operand_ == NULL) { |
| 16106 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16107 | GetArenaNoVirtual()); |
| 16108 | } |
| 16109 | // @@protoc_insertion_point(field_mutable:xla.ReduceRequest.operand) |
| 16110 | return operand_; |
| 16111 | } |
| 16112 | inline void ReduceRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 16113 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16114 | if (message_arena == NULL) { |
| 16115 | delete operand_; |
| 16116 | } |
| 16117 | if (operand) { |
| 16118 | ::google::protobuf::Arena* submessage_arena = |
| 16119 | ::google::protobuf::Arena::GetArena(operand); |
| 16120 | if (message_arena != submessage_arena) { |
| 16121 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 16122 | message_arena, operand, submessage_arena); |
| 16123 | } |
| 16124 | |
| 16125 | } else { |
| 16126 | |
| 16127 | } |
| 16128 | operand_ = operand; |
| 16129 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceRequest.operand) |
| 16130 | } |
| 16131 | |
| 16132 | // .xla.ComputationDataHandle init_value = 3; |
| 16133 | inline bool ReduceRequest::has_init_value() const { |
| 16134 | return this != internal_default_instance() && init_value_ != NULL; |
| 16135 | } |
| 16136 | inline void ReduceRequest::clear_init_value() { |
| 16137 | if (GetArenaNoVirtual() == NULL && init_value_ != NULL) { |
| 16138 | delete init_value_; |
| 16139 | } |
| 16140 | init_value_ = NULL; |
| 16141 | } |
| 16142 | inline const ::xla::ComputationDataHandle& ReduceRequest::init_value() const { |
| 16143 | const ::xla::ComputationDataHandle* p = init_value_; |
| 16144 | // @@protoc_insertion_point(field_get:xla.ReduceRequest.init_value) |
| 16145 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16146 | &::xla::_ComputationDataHandle_default_instance_); |
| 16147 | } |
| 16148 | inline ::xla::ComputationDataHandle* ReduceRequest::release_init_value() { |
| 16149 | // @@protoc_insertion_point(field_release:xla.ReduceRequest.init_value) |
| 16150 | |
| 16151 | ::xla::ComputationDataHandle* temp = init_value_; |
| 16152 | if (GetArenaNoVirtual() != NULL) { |
| 16153 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16154 | } |
| 16155 | init_value_ = NULL; |
| 16156 | return temp; |
| 16157 | } |
| 16158 | inline ::xla::ComputationDataHandle* ReduceRequest::unsafe_arena_release_init_value() { |
| 16159 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceRequest.init_value) |
| 16160 | |
| 16161 | ::xla::ComputationDataHandle* temp = init_value_; |
| 16162 | init_value_ = NULL; |
| 16163 | return temp; |
| 16164 | } |
| 16165 | inline ::xla::ComputationDataHandle* ReduceRequest::mutable_init_value() { |
| 16166 | |
| 16167 | if (init_value_ == NULL) { |
| 16168 | init_value_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16169 | GetArenaNoVirtual()); |
| 16170 | } |
| 16171 | // @@protoc_insertion_point(field_mutable:xla.ReduceRequest.init_value) |
| 16172 | return init_value_; |
| 16173 | } |
| 16174 | inline void ReduceRequest::set_allocated_init_value(::xla::ComputationDataHandle* init_value) { |
| 16175 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16176 | if (message_arena == NULL) { |
| 16177 | delete init_value_; |
| 16178 | } |
| 16179 | if (init_value) { |
| 16180 | ::google::protobuf::Arena* submessage_arena = |
| 16181 | ::google::protobuf::Arena::GetArena(init_value); |
| 16182 | if (message_arena != submessage_arena) { |
| 16183 | init_value = ::google::protobuf::internal::GetOwnedMessage( |
| 16184 | message_arena, init_value, submessage_arena); |
| 16185 | } |
| 16186 | |
| 16187 | } else { |
| 16188 | |
| 16189 | } |
| 16190 | init_value_ = init_value; |
| 16191 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceRequest.init_value) |
| 16192 | } |
| 16193 | |
| 16194 | // repeated int64 dimensions = 4; |
| 16195 | inline int ReduceRequest::dimensions_size() const { |
| 16196 | return dimensions_.size(); |
| 16197 | } |
| 16198 | inline void ReduceRequest::clear_dimensions() { |
| 16199 | dimensions_.Clear(); |
| 16200 | } |
| 16201 | inline ::google::protobuf::int64 ReduceRequest::dimensions(int index) const { |
| 16202 | // @@protoc_insertion_point(field_get:xla.ReduceRequest.dimensions) |
| 16203 | return dimensions_.Get(index); |
| 16204 | } |
| 16205 | inline void ReduceRequest::set_dimensions(int index, ::google::protobuf::int64 value) { |
| 16206 | dimensions_.Set(index, value); |
| 16207 | // @@protoc_insertion_point(field_set:xla.ReduceRequest.dimensions) |
| 16208 | } |
| 16209 | inline void ReduceRequest::add_dimensions(::google::protobuf::int64 value) { |
| 16210 | dimensions_.Add(value); |
| 16211 | // @@protoc_insertion_point(field_add:xla.ReduceRequest.dimensions) |
| 16212 | } |
| 16213 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 16214 | ReduceRequest::dimensions() const { |
| 16215 | // @@protoc_insertion_point(field_list:xla.ReduceRequest.dimensions) |
| 16216 | return dimensions_; |
| 16217 | } |
| 16218 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 16219 | ReduceRequest::mutable_dimensions() { |
| 16220 | // @@protoc_insertion_point(field_mutable_list:xla.ReduceRequest.dimensions) |
| 16221 | return &dimensions_; |
| 16222 | } |
| 16223 | |
| 16224 | // .xla.ComputationHandle to_apply = 5; |
| 16225 | inline bool ReduceRequest::has_to_apply() const { |
| 16226 | return this != internal_default_instance() && to_apply_ != NULL; |
| 16227 | } |
| 16228 | inline void ReduceRequest::clear_to_apply() { |
| 16229 | if (GetArenaNoVirtual() == NULL && to_apply_ != NULL) { |
| 16230 | delete to_apply_; |
| 16231 | } |
| 16232 | to_apply_ = NULL; |
| 16233 | } |
| 16234 | inline const ::xla::ComputationHandle& ReduceRequest::to_apply() const { |
| 16235 | const ::xla::ComputationHandle* p = to_apply_; |
| 16236 | // @@protoc_insertion_point(field_get:xla.ReduceRequest.to_apply) |
| 16237 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 16238 | &::xla::_ComputationHandle_default_instance_); |
| 16239 | } |
| 16240 | inline ::xla::ComputationHandle* ReduceRequest::release_to_apply() { |
| 16241 | // @@protoc_insertion_point(field_release:xla.ReduceRequest.to_apply) |
| 16242 | |
| 16243 | ::xla::ComputationHandle* temp = to_apply_; |
| 16244 | if (GetArenaNoVirtual() != NULL) { |
| 16245 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16246 | } |
| 16247 | to_apply_ = NULL; |
| 16248 | return temp; |
| 16249 | } |
| 16250 | inline ::xla::ComputationHandle* ReduceRequest::unsafe_arena_release_to_apply() { |
| 16251 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceRequest.to_apply) |
| 16252 | |
| 16253 | ::xla::ComputationHandle* temp = to_apply_; |
| 16254 | to_apply_ = NULL; |
| 16255 | return temp; |
| 16256 | } |
| 16257 | inline ::xla::ComputationHandle* ReduceRequest::mutable_to_apply() { |
| 16258 | |
| 16259 | if (to_apply_ == NULL) { |
| 16260 | to_apply_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 16261 | GetArenaNoVirtual()); |
| 16262 | } |
| 16263 | // @@protoc_insertion_point(field_mutable:xla.ReduceRequest.to_apply) |
| 16264 | return to_apply_; |
| 16265 | } |
| 16266 | inline void ReduceRequest::set_allocated_to_apply(::xla::ComputationHandle* to_apply) { |
| 16267 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16268 | if (message_arena == NULL) { |
| 16269 | delete to_apply_; |
| 16270 | } |
| 16271 | if (to_apply) { |
| 16272 | ::google::protobuf::Arena* submessage_arena = |
| 16273 | ::google::protobuf::Arena::GetArena(to_apply); |
| 16274 | if (message_arena != submessage_arena) { |
| 16275 | to_apply = ::google::protobuf::internal::GetOwnedMessage( |
| 16276 | message_arena, to_apply, submessage_arena); |
| 16277 | } |
| 16278 | |
| 16279 | } else { |
| 16280 | |
| 16281 | } |
| 16282 | to_apply_ = to_apply; |
| 16283 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceRequest.to_apply) |
| 16284 | } |
| 16285 | |
| 16286 | // ------------------------------------------------------------------- |
| 16287 | |
| 16288 | // ReduceWindowRequest |
| 16289 | |
| 16290 | // .xla.ComputationDataHandle operand = 2; |
| 16291 | inline bool ReduceWindowRequest::has_operand() const { |
| 16292 | return this != internal_default_instance() && operand_ != NULL; |
| 16293 | } |
| 16294 | inline void ReduceWindowRequest::clear_operand() { |
| 16295 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 16296 | delete operand_; |
| 16297 | } |
| 16298 | operand_ = NULL; |
| 16299 | } |
| 16300 | inline const ::xla::ComputationDataHandle& ReduceWindowRequest::operand() const { |
| 16301 | const ::xla::ComputationDataHandle* p = operand_; |
| 16302 | // @@protoc_insertion_point(field_get:xla.ReduceWindowRequest.operand) |
| 16303 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16304 | &::xla::_ComputationDataHandle_default_instance_); |
| 16305 | } |
| 16306 | inline ::xla::ComputationDataHandle* ReduceWindowRequest::release_operand() { |
| 16307 | // @@protoc_insertion_point(field_release:xla.ReduceWindowRequest.operand) |
| 16308 | |
| 16309 | ::xla::ComputationDataHandle* temp = operand_; |
| 16310 | if (GetArenaNoVirtual() != NULL) { |
| 16311 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16312 | } |
| 16313 | operand_ = NULL; |
| 16314 | return temp; |
| 16315 | } |
| 16316 | inline ::xla::ComputationDataHandle* ReduceWindowRequest::unsafe_arena_release_operand() { |
| 16317 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceWindowRequest.operand) |
| 16318 | |
| 16319 | ::xla::ComputationDataHandle* temp = operand_; |
| 16320 | operand_ = NULL; |
| 16321 | return temp; |
| 16322 | } |
| 16323 | inline ::xla::ComputationDataHandle* ReduceWindowRequest::mutable_operand() { |
| 16324 | |
| 16325 | if (operand_ == NULL) { |
| 16326 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16327 | GetArenaNoVirtual()); |
| 16328 | } |
| 16329 | // @@protoc_insertion_point(field_mutable:xla.ReduceWindowRequest.operand) |
| 16330 | return operand_; |
| 16331 | } |
| 16332 | inline void ReduceWindowRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 16333 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16334 | if (message_arena == NULL) { |
| 16335 | delete operand_; |
| 16336 | } |
| 16337 | if (operand) { |
| 16338 | ::google::protobuf::Arena* submessage_arena = |
| 16339 | ::google::protobuf::Arena::GetArena(operand); |
| 16340 | if (message_arena != submessage_arena) { |
| 16341 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 16342 | message_arena, operand, submessage_arena); |
| 16343 | } |
| 16344 | |
| 16345 | } else { |
| 16346 | |
| 16347 | } |
| 16348 | operand_ = operand; |
| 16349 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceWindowRequest.operand) |
| 16350 | } |
| 16351 | |
| 16352 | // .xla.ComputationDataHandle init_value = 3; |
| 16353 | inline bool ReduceWindowRequest::has_init_value() const { |
| 16354 | return this != internal_default_instance() && init_value_ != NULL; |
| 16355 | } |
| 16356 | inline void ReduceWindowRequest::clear_init_value() { |
| 16357 | if (GetArenaNoVirtual() == NULL && init_value_ != NULL) { |
| 16358 | delete init_value_; |
| 16359 | } |
| 16360 | init_value_ = NULL; |
| 16361 | } |
| 16362 | inline const ::xla::ComputationDataHandle& ReduceWindowRequest::init_value() const { |
| 16363 | const ::xla::ComputationDataHandle* p = init_value_; |
| 16364 | // @@protoc_insertion_point(field_get:xla.ReduceWindowRequest.init_value) |
| 16365 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16366 | &::xla::_ComputationDataHandle_default_instance_); |
| 16367 | } |
| 16368 | inline ::xla::ComputationDataHandle* ReduceWindowRequest::release_init_value() { |
| 16369 | // @@protoc_insertion_point(field_release:xla.ReduceWindowRequest.init_value) |
| 16370 | |
| 16371 | ::xla::ComputationDataHandle* temp = init_value_; |
| 16372 | if (GetArenaNoVirtual() != NULL) { |
| 16373 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16374 | } |
| 16375 | init_value_ = NULL; |
| 16376 | return temp; |
| 16377 | } |
| 16378 | inline ::xla::ComputationDataHandle* ReduceWindowRequest::unsafe_arena_release_init_value() { |
| 16379 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceWindowRequest.init_value) |
| 16380 | |
| 16381 | ::xla::ComputationDataHandle* temp = init_value_; |
| 16382 | init_value_ = NULL; |
| 16383 | return temp; |
| 16384 | } |
| 16385 | inline ::xla::ComputationDataHandle* ReduceWindowRequest::mutable_init_value() { |
| 16386 | |
| 16387 | if (init_value_ == NULL) { |
| 16388 | init_value_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16389 | GetArenaNoVirtual()); |
| 16390 | } |
| 16391 | // @@protoc_insertion_point(field_mutable:xla.ReduceWindowRequest.init_value) |
| 16392 | return init_value_; |
| 16393 | } |
| 16394 | inline void ReduceWindowRequest::set_allocated_init_value(::xla::ComputationDataHandle* init_value) { |
| 16395 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16396 | if (message_arena == NULL) { |
| 16397 | delete init_value_; |
| 16398 | } |
| 16399 | if (init_value) { |
| 16400 | ::google::protobuf::Arena* submessage_arena = |
| 16401 | ::google::protobuf::Arena::GetArena(init_value); |
| 16402 | if (message_arena != submessage_arena) { |
| 16403 | init_value = ::google::protobuf::internal::GetOwnedMessage( |
| 16404 | message_arena, init_value, submessage_arena); |
| 16405 | } |
| 16406 | |
| 16407 | } else { |
| 16408 | |
| 16409 | } |
| 16410 | init_value_ = init_value; |
| 16411 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceWindowRequest.init_value) |
| 16412 | } |
| 16413 | |
| 16414 | // .xla.Window window = 4; |
| 16415 | inline bool ReduceWindowRequest::has_window() const { |
| 16416 | return this != internal_default_instance() && window_ != NULL; |
| 16417 | } |
| 16418 | inline void ReduceWindowRequest::clear_window() { |
| 16419 | if (GetArenaNoVirtual() == NULL && window_ != NULL) { |
| 16420 | delete window_; |
| 16421 | } |
| 16422 | window_ = NULL; |
| 16423 | } |
| 16424 | inline const ::xla::Window& ReduceWindowRequest::window() const { |
| 16425 | const ::xla::Window* p = window_; |
| 16426 | // @@protoc_insertion_point(field_get:xla.ReduceWindowRequest.window) |
| 16427 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Window*>( |
| 16428 | &::xla::_Window_default_instance_); |
| 16429 | } |
| 16430 | inline ::xla::Window* ReduceWindowRequest::release_window() { |
| 16431 | // @@protoc_insertion_point(field_release:xla.ReduceWindowRequest.window) |
| 16432 | |
| 16433 | ::xla::Window* temp = window_; |
| 16434 | if (GetArenaNoVirtual() != NULL) { |
| 16435 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16436 | } |
| 16437 | window_ = NULL; |
| 16438 | return temp; |
| 16439 | } |
| 16440 | inline ::xla::Window* ReduceWindowRequest::unsafe_arena_release_window() { |
| 16441 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceWindowRequest.window) |
| 16442 | |
| 16443 | ::xla::Window* temp = window_; |
| 16444 | window_ = NULL; |
| 16445 | return temp; |
| 16446 | } |
| 16447 | inline ::xla::Window* ReduceWindowRequest::mutable_window() { |
| 16448 | |
| 16449 | if (window_ == NULL) { |
| 16450 | window_ = ::google::protobuf::Arena::CreateMessage< ::xla::Window >( |
| 16451 | GetArenaNoVirtual()); |
| 16452 | } |
| 16453 | // @@protoc_insertion_point(field_mutable:xla.ReduceWindowRequest.window) |
| 16454 | return window_; |
| 16455 | } |
| 16456 | inline void ReduceWindowRequest::set_allocated_window(::xla::Window* window) { |
| 16457 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16458 | if (message_arena == NULL) { |
| 16459 | delete window_; |
| 16460 | } |
| 16461 | if (window) { |
| 16462 | ::google::protobuf::Arena* submessage_arena = |
| 16463 | ::google::protobuf::Arena::GetArena(window); |
| 16464 | if (message_arena != submessage_arena) { |
| 16465 | window = ::google::protobuf::internal::GetOwnedMessage( |
| 16466 | message_arena, window, submessage_arena); |
| 16467 | } |
| 16468 | |
| 16469 | } else { |
| 16470 | |
| 16471 | } |
| 16472 | window_ = window; |
| 16473 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceWindowRequest.window) |
| 16474 | } |
| 16475 | |
| 16476 | // .xla.ComputationHandle to_apply = 5; |
| 16477 | inline bool ReduceWindowRequest::has_to_apply() const { |
| 16478 | return this != internal_default_instance() && to_apply_ != NULL; |
| 16479 | } |
| 16480 | inline void ReduceWindowRequest::clear_to_apply() { |
| 16481 | if (GetArenaNoVirtual() == NULL && to_apply_ != NULL) { |
| 16482 | delete to_apply_; |
| 16483 | } |
| 16484 | to_apply_ = NULL; |
| 16485 | } |
| 16486 | inline const ::xla::ComputationHandle& ReduceWindowRequest::to_apply() const { |
| 16487 | const ::xla::ComputationHandle* p = to_apply_; |
| 16488 | // @@protoc_insertion_point(field_get:xla.ReduceWindowRequest.to_apply) |
| 16489 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 16490 | &::xla::_ComputationHandle_default_instance_); |
| 16491 | } |
| 16492 | inline ::xla::ComputationHandle* ReduceWindowRequest::release_to_apply() { |
| 16493 | // @@protoc_insertion_point(field_release:xla.ReduceWindowRequest.to_apply) |
| 16494 | |
| 16495 | ::xla::ComputationHandle* temp = to_apply_; |
| 16496 | if (GetArenaNoVirtual() != NULL) { |
| 16497 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16498 | } |
| 16499 | to_apply_ = NULL; |
| 16500 | return temp; |
| 16501 | } |
| 16502 | inline ::xla::ComputationHandle* ReduceWindowRequest::unsafe_arena_release_to_apply() { |
| 16503 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReduceWindowRequest.to_apply) |
| 16504 | |
| 16505 | ::xla::ComputationHandle* temp = to_apply_; |
| 16506 | to_apply_ = NULL; |
| 16507 | return temp; |
| 16508 | } |
| 16509 | inline ::xla::ComputationHandle* ReduceWindowRequest::mutable_to_apply() { |
| 16510 | |
| 16511 | if (to_apply_ == NULL) { |
| 16512 | to_apply_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 16513 | GetArenaNoVirtual()); |
| 16514 | } |
| 16515 | // @@protoc_insertion_point(field_mutable:xla.ReduceWindowRequest.to_apply) |
| 16516 | return to_apply_; |
| 16517 | } |
| 16518 | inline void ReduceWindowRequest::set_allocated_to_apply(::xla::ComputationHandle* to_apply) { |
| 16519 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16520 | if (message_arena == NULL) { |
| 16521 | delete to_apply_; |
| 16522 | } |
| 16523 | if (to_apply) { |
| 16524 | ::google::protobuf::Arena* submessage_arena = |
| 16525 | ::google::protobuf::Arena::GetArena(to_apply); |
| 16526 | if (message_arena != submessage_arena) { |
| 16527 | to_apply = ::google::protobuf::internal::GetOwnedMessage( |
| 16528 | message_arena, to_apply, submessage_arena); |
| 16529 | } |
| 16530 | |
| 16531 | } else { |
| 16532 | |
| 16533 | } |
| 16534 | to_apply_ = to_apply; |
| 16535 | // @@protoc_insertion_point(field_set_allocated:xla.ReduceWindowRequest.to_apply) |
| 16536 | } |
| 16537 | |
| 16538 | // ------------------------------------------------------------------- |
| 16539 | |
| 16540 | // BatchNormTrainingRequest |
| 16541 | |
| 16542 | // .xla.ComputationDataHandle operand = 1; |
| 16543 | inline bool BatchNormTrainingRequest::has_operand() const { |
| 16544 | return this != internal_default_instance() && operand_ != NULL; |
| 16545 | } |
| 16546 | inline void BatchNormTrainingRequest::clear_operand() { |
| 16547 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 16548 | delete operand_; |
| 16549 | } |
| 16550 | operand_ = NULL; |
| 16551 | } |
| 16552 | inline const ::xla::ComputationDataHandle& BatchNormTrainingRequest::operand() const { |
| 16553 | const ::xla::ComputationDataHandle* p = operand_; |
| 16554 | // @@protoc_insertion_point(field_get:xla.BatchNormTrainingRequest.operand) |
| 16555 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16556 | &::xla::_ComputationDataHandle_default_instance_); |
| 16557 | } |
| 16558 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::release_operand() { |
| 16559 | // @@protoc_insertion_point(field_release:xla.BatchNormTrainingRequest.operand) |
| 16560 | |
| 16561 | ::xla::ComputationDataHandle* temp = operand_; |
| 16562 | if (GetArenaNoVirtual() != NULL) { |
| 16563 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16564 | } |
| 16565 | operand_ = NULL; |
| 16566 | return temp; |
| 16567 | } |
| 16568 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::unsafe_arena_release_operand() { |
| 16569 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormTrainingRequest.operand) |
| 16570 | |
| 16571 | ::xla::ComputationDataHandle* temp = operand_; |
| 16572 | operand_ = NULL; |
| 16573 | return temp; |
| 16574 | } |
| 16575 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::mutable_operand() { |
| 16576 | |
| 16577 | if (operand_ == NULL) { |
| 16578 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16579 | GetArenaNoVirtual()); |
| 16580 | } |
| 16581 | // @@protoc_insertion_point(field_mutable:xla.BatchNormTrainingRequest.operand) |
| 16582 | return operand_; |
| 16583 | } |
| 16584 | inline void BatchNormTrainingRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 16585 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16586 | if (message_arena == NULL) { |
| 16587 | delete operand_; |
| 16588 | } |
| 16589 | if (operand) { |
| 16590 | ::google::protobuf::Arena* submessage_arena = |
| 16591 | ::google::protobuf::Arena::GetArena(operand); |
| 16592 | if (message_arena != submessage_arena) { |
| 16593 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 16594 | message_arena, operand, submessage_arena); |
| 16595 | } |
| 16596 | |
| 16597 | } else { |
| 16598 | |
| 16599 | } |
| 16600 | operand_ = operand; |
| 16601 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormTrainingRequest.operand) |
| 16602 | } |
| 16603 | |
| 16604 | // .xla.ComputationDataHandle scale = 2; |
| 16605 | inline bool BatchNormTrainingRequest::has_scale() const { |
| 16606 | return this != internal_default_instance() && scale_ != NULL; |
| 16607 | } |
| 16608 | inline void BatchNormTrainingRequest::clear_scale() { |
| 16609 | if (GetArenaNoVirtual() == NULL && scale_ != NULL) { |
| 16610 | delete scale_; |
| 16611 | } |
| 16612 | scale_ = NULL; |
| 16613 | } |
| 16614 | inline const ::xla::ComputationDataHandle& BatchNormTrainingRequest::scale() const { |
| 16615 | const ::xla::ComputationDataHandle* p = scale_; |
| 16616 | // @@protoc_insertion_point(field_get:xla.BatchNormTrainingRequest.scale) |
| 16617 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16618 | &::xla::_ComputationDataHandle_default_instance_); |
| 16619 | } |
| 16620 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::release_scale() { |
| 16621 | // @@protoc_insertion_point(field_release:xla.BatchNormTrainingRequest.scale) |
| 16622 | |
| 16623 | ::xla::ComputationDataHandle* temp = scale_; |
| 16624 | if (GetArenaNoVirtual() != NULL) { |
| 16625 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16626 | } |
| 16627 | scale_ = NULL; |
| 16628 | return temp; |
| 16629 | } |
| 16630 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::unsafe_arena_release_scale() { |
| 16631 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormTrainingRequest.scale) |
| 16632 | |
| 16633 | ::xla::ComputationDataHandle* temp = scale_; |
| 16634 | scale_ = NULL; |
| 16635 | return temp; |
| 16636 | } |
| 16637 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::mutable_scale() { |
| 16638 | |
| 16639 | if (scale_ == NULL) { |
| 16640 | scale_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16641 | GetArenaNoVirtual()); |
| 16642 | } |
| 16643 | // @@protoc_insertion_point(field_mutable:xla.BatchNormTrainingRequest.scale) |
| 16644 | return scale_; |
| 16645 | } |
| 16646 | inline void BatchNormTrainingRequest::set_allocated_scale(::xla::ComputationDataHandle* scale) { |
| 16647 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16648 | if (message_arena == NULL) { |
| 16649 | delete scale_; |
| 16650 | } |
| 16651 | if (scale) { |
| 16652 | ::google::protobuf::Arena* submessage_arena = |
| 16653 | ::google::protobuf::Arena::GetArena(scale); |
| 16654 | if (message_arena != submessage_arena) { |
| 16655 | scale = ::google::protobuf::internal::GetOwnedMessage( |
| 16656 | message_arena, scale, submessage_arena); |
| 16657 | } |
| 16658 | |
| 16659 | } else { |
| 16660 | |
| 16661 | } |
| 16662 | scale_ = scale; |
| 16663 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormTrainingRequest.scale) |
| 16664 | } |
| 16665 | |
| 16666 | // .xla.ComputationDataHandle offset = 3; |
| 16667 | inline bool BatchNormTrainingRequest::has_offset() const { |
| 16668 | return this != internal_default_instance() && offset_ != NULL; |
| 16669 | } |
| 16670 | inline void BatchNormTrainingRequest::clear_offset() { |
| 16671 | if (GetArenaNoVirtual() == NULL && offset_ != NULL) { |
| 16672 | delete offset_; |
| 16673 | } |
| 16674 | offset_ = NULL; |
| 16675 | } |
| 16676 | inline const ::xla::ComputationDataHandle& BatchNormTrainingRequest::offset() const { |
| 16677 | const ::xla::ComputationDataHandle* p = offset_; |
| 16678 | // @@protoc_insertion_point(field_get:xla.BatchNormTrainingRequest.offset) |
| 16679 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16680 | &::xla::_ComputationDataHandle_default_instance_); |
| 16681 | } |
| 16682 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::release_offset() { |
| 16683 | // @@protoc_insertion_point(field_release:xla.BatchNormTrainingRequest.offset) |
| 16684 | |
| 16685 | ::xla::ComputationDataHandle* temp = offset_; |
| 16686 | if (GetArenaNoVirtual() != NULL) { |
| 16687 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16688 | } |
| 16689 | offset_ = NULL; |
| 16690 | return temp; |
| 16691 | } |
| 16692 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::unsafe_arena_release_offset() { |
| 16693 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormTrainingRequest.offset) |
| 16694 | |
| 16695 | ::xla::ComputationDataHandle* temp = offset_; |
| 16696 | offset_ = NULL; |
| 16697 | return temp; |
| 16698 | } |
| 16699 | inline ::xla::ComputationDataHandle* BatchNormTrainingRequest::mutable_offset() { |
| 16700 | |
| 16701 | if (offset_ == NULL) { |
| 16702 | offset_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16703 | GetArenaNoVirtual()); |
| 16704 | } |
| 16705 | // @@protoc_insertion_point(field_mutable:xla.BatchNormTrainingRequest.offset) |
| 16706 | return offset_; |
| 16707 | } |
| 16708 | inline void BatchNormTrainingRequest::set_allocated_offset(::xla::ComputationDataHandle* offset) { |
| 16709 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16710 | if (message_arena == NULL) { |
| 16711 | delete offset_; |
| 16712 | } |
| 16713 | if (offset) { |
| 16714 | ::google::protobuf::Arena* submessage_arena = |
| 16715 | ::google::protobuf::Arena::GetArena(offset); |
| 16716 | if (message_arena != submessage_arena) { |
| 16717 | offset = ::google::protobuf::internal::GetOwnedMessage( |
| 16718 | message_arena, offset, submessage_arena); |
| 16719 | } |
| 16720 | |
| 16721 | } else { |
| 16722 | |
| 16723 | } |
| 16724 | offset_ = offset; |
| 16725 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormTrainingRequest.offset) |
| 16726 | } |
| 16727 | |
| 16728 | // float epsilon = 4; |
| 16729 | inline void BatchNormTrainingRequest::clear_epsilon() { |
| 16730 | epsilon_ = 0; |
| 16731 | } |
| 16732 | inline float BatchNormTrainingRequest::epsilon() const { |
| 16733 | // @@protoc_insertion_point(field_get:xla.BatchNormTrainingRequest.epsilon) |
| 16734 | return epsilon_; |
| 16735 | } |
| 16736 | inline void BatchNormTrainingRequest::set_epsilon(float value) { |
| 16737 | |
| 16738 | epsilon_ = value; |
| 16739 | // @@protoc_insertion_point(field_set:xla.BatchNormTrainingRequest.epsilon) |
| 16740 | } |
| 16741 | |
| 16742 | // int64 feature_index = 5; |
| 16743 | inline void BatchNormTrainingRequest::clear_feature_index() { |
| 16744 | feature_index_ = GOOGLE_LONGLONG(0); |
| 16745 | } |
| 16746 | inline ::google::protobuf::int64 BatchNormTrainingRequest::feature_index() const { |
| 16747 | // @@protoc_insertion_point(field_get:xla.BatchNormTrainingRequest.feature_index) |
| 16748 | return feature_index_; |
| 16749 | } |
| 16750 | inline void BatchNormTrainingRequest::set_feature_index(::google::protobuf::int64 value) { |
| 16751 | |
| 16752 | feature_index_ = value; |
| 16753 | // @@protoc_insertion_point(field_set:xla.BatchNormTrainingRequest.feature_index) |
| 16754 | } |
| 16755 | |
| 16756 | // ------------------------------------------------------------------- |
| 16757 | |
| 16758 | // BatchNormInferenceRequest |
| 16759 | |
| 16760 | // .xla.ComputationDataHandle operand = 1; |
| 16761 | inline bool BatchNormInferenceRequest::has_operand() const { |
| 16762 | return this != internal_default_instance() && operand_ != NULL; |
| 16763 | } |
| 16764 | inline void BatchNormInferenceRequest::clear_operand() { |
| 16765 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 16766 | delete operand_; |
| 16767 | } |
| 16768 | operand_ = NULL; |
| 16769 | } |
| 16770 | inline const ::xla::ComputationDataHandle& BatchNormInferenceRequest::operand() const { |
| 16771 | const ::xla::ComputationDataHandle* p = operand_; |
| 16772 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.operand) |
| 16773 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16774 | &::xla::_ComputationDataHandle_default_instance_); |
| 16775 | } |
| 16776 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::release_operand() { |
| 16777 | // @@protoc_insertion_point(field_release:xla.BatchNormInferenceRequest.operand) |
| 16778 | |
| 16779 | ::xla::ComputationDataHandle* temp = operand_; |
| 16780 | if (GetArenaNoVirtual() != NULL) { |
| 16781 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16782 | } |
| 16783 | operand_ = NULL; |
| 16784 | return temp; |
| 16785 | } |
| 16786 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::unsafe_arena_release_operand() { |
| 16787 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormInferenceRequest.operand) |
| 16788 | |
| 16789 | ::xla::ComputationDataHandle* temp = operand_; |
| 16790 | operand_ = NULL; |
| 16791 | return temp; |
| 16792 | } |
| 16793 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::mutable_operand() { |
| 16794 | |
| 16795 | if (operand_ == NULL) { |
| 16796 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16797 | GetArenaNoVirtual()); |
| 16798 | } |
| 16799 | // @@protoc_insertion_point(field_mutable:xla.BatchNormInferenceRequest.operand) |
| 16800 | return operand_; |
| 16801 | } |
| 16802 | inline void BatchNormInferenceRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 16803 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16804 | if (message_arena == NULL) { |
| 16805 | delete operand_; |
| 16806 | } |
| 16807 | if (operand) { |
| 16808 | ::google::protobuf::Arena* submessage_arena = |
| 16809 | ::google::protobuf::Arena::GetArena(operand); |
| 16810 | if (message_arena != submessage_arena) { |
| 16811 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 16812 | message_arena, operand, submessage_arena); |
| 16813 | } |
| 16814 | |
| 16815 | } else { |
| 16816 | |
| 16817 | } |
| 16818 | operand_ = operand; |
| 16819 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormInferenceRequest.operand) |
| 16820 | } |
| 16821 | |
| 16822 | // .xla.ComputationDataHandle scale = 2; |
| 16823 | inline bool BatchNormInferenceRequest::has_scale() const { |
| 16824 | return this != internal_default_instance() && scale_ != NULL; |
| 16825 | } |
| 16826 | inline void BatchNormInferenceRequest::clear_scale() { |
| 16827 | if (GetArenaNoVirtual() == NULL && scale_ != NULL) { |
| 16828 | delete scale_; |
| 16829 | } |
| 16830 | scale_ = NULL; |
| 16831 | } |
| 16832 | inline const ::xla::ComputationDataHandle& BatchNormInferenceRequest::scale() const { |
| 16833 | const ::xla::ComputationDataHandle* p = scale_; |
| 16834 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.scale) |
| 16835 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16836 | &::xla::_ComputationDataHandle_default_instance_); |
| 16837 | } |
| 16838 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::release_scale() { |
| 16839 | // @@protoc_insertion_point(field_release:xla.BatchNormInferenceRequest.scale) |
| 16840 | |
| 16841 | ::xla::ComputationDataHandle* temp = scale_; |
| 16842 | if (GetArenaNoVirtual() != NULL) { |
| 16843 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16844 | } |
| 16845 | scale_ = NULL; |
| 16846 | return temp; |
| 16847 | } |
| 16848 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::unsafe_arena_release_scale() { |
| 16849 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormInferenceRequest.scale) |
| 16850 | |
| 16851 | ::xla::ComputationDataHandle* temp = scale_; |
| 16852 | scale_ = NULL; |
| 16853 | return temp; |
| 16854 | } |
| 16855 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::mutable_scale() { |
| 16856 | |
| 16857 | if (scale_ == NULL) { |
| 16858 | scale_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16859 | GetArenaNoVirtual()); |
| 16860 | } |
| 16861 | // @@protoc_insertion_point(field_mutable:xla.BatchNormInferenceRequest.scale) |
| 16862 | return scale_; |
| 16863 | } |
| 16864 | inline void BatchNormInferenceRequest::set_allocated_scale(::xla::ComputationDataHandle* scale) { |
| 16865 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16866 | if (message_arena == NULL) { |
| 16867 | delete scale_; |
| 16868 | } |
| 16869 | if (scale) { |
| 16870 | ::google::protobuf::Arena* submessage_arena = |
| 16871 | ::google::protobuf::Arena::GetArena(scale); |
| 16872 | if (message_arena != submessage_arena) { |
| 16873 | scale = ::google::protobuf::internal::GetOwnedMessage( |
| 16874 | message_arena, scale, submessage_arena); |
| 16875 | } |
| 16876 | |
| 16877 | } else { |
| 16878 | |
| 16879 | } |
| 16880 | scale_ = scale; |
| 16881 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormInferenceRequest.scale) |
| 16882 | } |
| 16883 | |
| 16884 | // .xla.ComputationDataHandle offset = 3; |
| 16885 | inline bool BatchNormInferenceRequest::has_offset() const { |
| 16886 | return this != internal_default_instance() && offset_ != NULL; |
| 16887 | } |
| 16888 | inline void BatchNormInferenceRequest::clear_offset() { |
| 16889 | if (GetArenaNoVirtual() == NULL && offset_ != NULL) { |
| 16890 | delete offset_; |
| 16891 | } |
| 16892 | offset_ = NULL; |
| 16893 | } |
| 16894 | inline const ::xla::ComputationDataHandle& BatchNormInferenceRequest::offset() const { |
| 16895 | const ::xla::ComputationDataHandle* p = offset_; |
| 16896 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.offset) |
| 16897 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16898 | &::xla::_ComputationDataHandle_default_instance_); |
| 16899 | } |
| 16900 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::release_offset() { |
| 16901 | // @@protoc_insertion_point(field_release:xla.BatchNormInferenceRequest.offset) |
| 16902 | |
| 16903 | ::xla::ComputationDataHandle* temp = offset_; |
| 16904 | if (GetArenaNoVirtual() != NULL) { |
| 16905 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16906 | } |
| 16907 | offset_ = NULL; |
| 16908 | return temp; |
| 16909 | } |
| 16910 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::unsafe_arena_release_offset() { |
| 16911 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormInferenceRequest.offset) |
| 16912 | |
| 16913 | ::xla::ComputationDataHandle* temp = offset_; |
| 16914 | offset_ = NULL; |
| 16915 | return temp; |
| 16916 | } |
| 16917 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::mutable_offset() { |
| 16918 | |
| 16919 | if (offset_ == NULL) { |
| 16920 | offset_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16921 | GetArenaNoVirtual()); |
| 16922 | } |
| 16923 | // @@protoc_insertion_point(field_mutable:xla.BatchNormInferenceRequest.offset) |
| 16924 | return offset_; |
| 16925 | } |
| 16926 | inline void BatchNormInferenceRequest::set_allocated_offset(::xla::ComputationDataHandle* offset) { |
| 16927 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16928 | if (message_arena == NULL) { |
| 16929 | delete offset_; |
| 16930 | } |
| 16931 | if (offset) { |
| 16932 | ::google::protobuf::Arena* submessage_arena = |
| 16933 | ::google::protobuf::Arena::GetArena(offset); |
| 16934 | if (message_arena != submessage_arena) { |
| 16935 | offset = ::google::protobuf::internal::GetOwnedMessage( |
| 16936 | message_arena, offset, submessage_arena); |
| 16937 | } |
| 16938 | |
| 16939 | } else { |
| 16940 | |
| 16941 | } |
| 16942 | offset_ = offset; |
| 16943 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormInferenceRequest.offset) |
| 16944 | } |
| 16945 | |
| 16946 | // .xla.ComputationDataHandle mean = 4; |
| 16947 | inline bool BatchNormInferenceRequest::has_mean() const { |
| 16948 | return this != internal_default_instance() && mean_ != NULL; |
| 16949 | } |
| 16950 | inline void BatchNormInferenceRequest::clear_mean() { |
| 16951 | if (GetArenaNoVirtual() == NULL && mean_ != NULL) { |
| 16952 | delete mean_; |
| 16953 | } |
| 16954 | mean_ = NULL; |
| 16955 | } |
| 16956 | inline const ::xla::ComputationDataHandle& BatchNormInferenceRequest::mean() const { |
| 16957 | const ::xla::ComputationDataHandle* p = mean_; |
| 16958 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.mean) |
| 16959 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 16960 | &::xla::_ComputationDataHandle_default_instance_); |
| 16961 | } |
| 16962 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::release_mean() { |
| 16963 | // @@protoc_insertion_point(field_release:xla.BatchNormInferenceRequest.mean) |
| 16964 | |
| 16965 | ::xla::ComputationDataHandle* temp = mean_; |
| 16966 | if (GetArenaNoVirtual() != NULL) { |
| 16967 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 16968 | } |
| 16969 | mean_ = NULL; |
| 16970 | return temp; |
| 16971 | } |
| 16972 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::unsafe_arena_release_mean() { |
| 16973 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormInferenceRequest.mean) |
| 16974 | |
| 16975 | ::xla::ComputationDataHandle* temp = mean_; |
| 16976 | mean_ = NULL; |
| 16977 | return temp; |
| 16978 | } |
| 16979 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::mutable_mean() { |
| 16980 | |
| 16981 | if (mean_ == NULL) { |
| 16982 | mean_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 16983 | GetArenaNoVirtual()); |
| 16984 | } |
| 16985 | // @@protoc_insertion_point(field_mutable:xla.BatchNormInferenceRequest.mean) |
| 16986 | return mean_; |
| 16987 | } |
| 16988 | inline void BatchNormInferenceRequest::set_allocated_mean(::xla::ComputationDataHandle* mean) { |
| 16989 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 16990 | if (message_arena == NULL) { |
| 16991 | delete mean_; |
| 16992 | } |
| 16993 | if (mean) { |
| 16994 | ::google::protobuf::Arena* submessage_arena = |
| 16995 | ::google::protobuf::Arena::GetArena(mean); |
| 16996 | if (message_arena != submessage_arena) { |
| 16997 | mean = ::google::protobuf::internal::GetOwnedMessage( |
| 16998 | message_arena, mean, submessage_arena); |
| 16999 | } |
| 17000 | |
| 17001 | } else { |
| 17002 | |
| 17003 | } |
| 17004 | mean_ = mean; |
| 17005 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormInferenceRequest.mean) |
| 17006 | } |
| 17007 | |
| 17008 | // .xla.ComputationDataHandle variance = 5; |
| 17009 | inline bool BatchNormInferenceRequest::has_variance() const { |
| 17010 | return this != internal_default_instance() && variance_ != NULL; |
| 17011 | } |
| 17012 | inline void BatchNormInferenceRequest::clear_variance() { |
| 17013 | if (GetArenaNoVirtual() == NULL && variance_ != NULL) { |
| 17014 | delete variance_; |
| 17015 | } |
| 17016 | variance_ = NULL; |
| 17017 | } |
| 17018 | inline const ::xla::ComputationDataHandle& BatchNormInferenceRequest::variance() const { |
| 17019 | const ::xla::ComputationDataHandle* p = variance_; |
| 17020 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.variance) |
| 17021 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17022 | &::xla::_ComputationDataHandle_default_instance_); |
| 17023 | } |
| 17024 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::release_variance() { |
| 17025 | // @@protoc_insertion_point(field_release:xla.BatchNormInferenceRequest.variance) |
| 17026 | |
| 17027 | ::xla::ComputationDataHandle* temp = variance_; |
| 17028 | if (GetArenaNoVirtual() != NULL) { |
| 17029 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17030 | } |
| 17031 | variance_ = NULL; |
| 17032 | return temp; |
| 17033 | } |
| 17034 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::unsafe_arena_release_variance() { |
| 17035 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormInferenceRequest.variance) |
| 17036 | |
| 17037 | ::xla::ComputationDataHandle* temp = variance_; |
| 17038 | variance_ = NULL; |
| 17039 | return temp; |
| 17040 | } |
| 17041 | inline ::xla::ComputationDataHandle* BatchNormInferenceRequest::mutable_variance() { |
| 17042 | |
| 17043 | if (variance_ == NULL) { |
| 17044 | variance_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17045 | GetArenaNoVirtual()); |
| 17046 | } |
| 17047 | // @@protoc_insertion_point(field_mutable:xla.BatchNormInferenceRequest.variance) |
| 17048 | return variance_; |
| 17049 | } |
| 17050 | inline void BatchNormInferenceRequest::set_allocated_variance(::xla::ComputationDataHandle* variance) { |
| 17051 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17052 | if (message_arena == NULL) { |
| 17053 | delete variance_; |
| 17054 | } |
| 17055 | if (variance) { |
| 17056 | ::google::protobuf::Arena* submessage_arena = |
| 17057 | ::google::protobuf::Arena::GetArena(variance); |
| 17058 | if (message_arena != submessage_arena) { |
| 17059 | variance = ::google::protobuf::internal::GetOwnedMessage( |
| 17060 | message_arena, variance, submessage_arena); |
| 17061 | } |
| 17062 | |
| 17063 | } else { |
| 17064 | |
| 17065 | } |
| 17066 | variance_ = variance; |
| 17067 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormInferenceRequest.variance) |
| 17068 | } |
| 17069 | |
| 17070 | // float epsilon = 6; |
| 17071 | inline void BatchNormInferenceRequest::clear_epsilon() { |
| 17072 | epsilon_ = 0; |
| 17073 | } |
| 17074 | inline float BatchNormInferenceRequest::epsilon() const { |
| 17075 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.epsilon) |
| 17076 | return epsilon_; |
| 17077 | } |
| 17078 | inline void BatchNormInferenceRequest::set_epsilon(float value) { |
| 17079 | |
| 17080 | epsilon_ = value; |
| 17081 | // @@protoc_insertion_point(field_set:xla.BatchNormInferenceRequest.epsilon) |
| 17082 | } |
| 17083 | |
| 17084 | // int64 feature_index = 7; |
| 17085 | inline void BatchNormInferenceRequest::clear_feature_index() { |
| 17086 | feature_index_ = GOOGLE_LONGLONG(0); |
| 17087 | } |
| 17088 | inline ::google::protobuf::int64 BatchNormInferenceRequest::feature_index() const { |
| 17089 | // @@protoc_insertion_point(field_get:xla.BatchNormInferenceRequest.feature_index) |
| 17090 | return feature_index_; |
| 17091 | } |
| 17092 | inline void BatchNormInferenceRequest::set_feature_index(::google::protobuf::int64 value) { |
| 17093 | |
| 17094 | feature_index_ = value; |
| 17095 | // @@protoc_insertion_point(field_set:xla.BatchNormInferenceRequest.feature_index) |
| 17096 | } |
| 17097 | |
| 17098 | // ------------------------------------------------------------------- |
| 17099 | |
| 17100 | // BatchNormGradRequest |
| 17101 | |
| 17102 | // .xla.ComputationDataHandle operand = 1; |
| 17103 | inline bool BatchNormGradRequest::has_operand() const { |
| 17104 | return this != internal_default_instance() && operand_ != NULL; |
| 17105 | } |
| 17106 | inline void BatchNormGradRequest::clear_operand() { |
| 17107 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 17108 | delete operand_; |
| 17109 | } |
| 17110 | operand_ = NULL; |
| 17111 | } |
| 17112 | inline const ::xla::ComputationDataHandle& BatchNormGradRequest::operand() const { |
| 17113 | const ::xla::ComputationDataHandle* p = operand_; |
| 17114 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.operand) |
| 17115 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17116 | &::xla::_ComputationDataHandle_default_instance_); |
| 17117 | } |
| 17118 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::release_operand() { |
| 17119 | // @@protoc_insertion_point(field_release:xla.BatchNormGradRequest.operand) |
| 17120 | |
| 17121 | ::xla::ComputationDataHandle* temp = operand_; |
| 17122 | if (GetArenaNoVirtual() != NULL) { |
| 17123 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17124 | } |
| 17125 | operand_ = NULL; |
| 17126 | return temp; |
| 17127 | } |
| 17128 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::unsafe_arena_release_operand() { |
| 17129 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormGradRequest.operand) |
| 17130 | |
| 17131 | ::xla::ComputationDataHandle* temp = operand_; |
| 17132 | operand_ = NULL; |
| 17133 | return temp; |
| 17134 | } |
| 17135 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::mutable_operand() { |
| 17136 | |
| 17137 | if (operand_ == NULL) { |
| 17138 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17139 | GetArenaNoVirtual()); |
| 17140 | } |
| 17141 | // @@protoc_insertion_point(field_mutable:xla.BatchNormGradRequest.operand) |
| 17142 | return operand_; |
| 17143 | } |
| 17144 | inline void BatchNormGradRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 17145 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17146 | if (message_arena == NULL) { |
| 17147 | delete operand_; |
| 17148 | } |
| 17149 | if (operand) { |
| 17150 | ::google::protobuf::Arena* submessage_arena = |
| 17151 | ::google::protobuf::Arena::GetArena(operand); |
| 17152 | if (message_arena != submessage_arena) { |
| 17153 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 17154 | message_arena, operand, submessage_arena); |
| 17155 | } |
| 17156 | |
| 17157 | } else { |
| 17158 | |
| 17159 | } |
| 17160 | operand_ = operand; |
| 17161 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormGradRequest.operand) |
| 17162 | } |
| 17163 | |
| 17164 | // .xla.ComputationDataHandle scale = 2; |
| 17165 | inline bool BatchNormGradRequest::has_scale() const { |
| 17166 | return this != internal_default_instance() && scale_ != NULL; |
| 17167 | } |
| 17168 | inline void BatchNormGradRequest::clear_scale() { |
| 17169 | if (GetArenaNoVirtual() == NULL && scale_ != NULL) { |
| 17170 | delete scale_; |
| 17171 | } |
| 17172 | scale_ = NULL; |
| 17173 | } |
| 17174 | inline const ::xla::ComputationDataHandle& BatchNormGradRequest::scale() const { |
| 17175 | const ::xla::ComputationDataHandle* p = scale_; |
| 17176 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.scale) |
| 17177 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17178 | &::xla::_ComputationDataHandle_default_instance_); |
| 17179 | } |
| 17180 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::release_scale() { |
| 17181 | // @@protoc_insertion_point(field_release:xla.BatchNormGradRequest.scale) |
| 17182 | |
| 17183 | ::xla::ComputationDataHandle* temp = scale_; |
| 17184 | if (GetArenaNoVirtual() != NULL) { |
| 17185 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17186 | } |
| 17187 | scale_ = NULL; |
| 17188 | return temp; |
| 17189 | } |
| 17190 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::unsafe_arena_release_scale() { |
| 17191 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormGradRequest.scale) |
| 17192 | |
| 17193 | ::xla::ComputationDataHandle* temp = scale_; |
| 17194 | scale_ = NULL; |
| 17195 | return temp; |
| 17196 | } |
| 17197 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::mutable_scale() { |
| 17198 | |
| 17199 | if (scale_ == NULL) { |
| 17200 | scale_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17201 | GetArenaNoVirtual()); |
| 17202 | } |
| 17203 | // @@protoc_insertion_point(field_mutable:xla.BatchNormGradRequest.scale) |
| 17204 | return scale_; |
| 17205 | } |
| 17206 | inline void BatchNormGradRequest::set_allocated_scale(::xla::ComputationDataHandle* scale) { |
| 17207 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17208 | if (message_arena == NULL) { |
| 17209 | delete scale_; |
| 17210 | } |
| 17211 | if (scale) { |
| 17212 | ::google::protobuf::Arena* submessage_arena = |
| 17213 | ::google::protobuf::Arena::GetArena(scale); |
| 17214 | if (message_arena != submessage_arena) { |
| 17215 | scale = ::google::protobuf::internal::GetOwnedMessage( |
| 17216 | message_arena, scale, submessage_arena); |
| 17217 | } |
| 17218 | |
| 17219 | } else { |
| 17220 | |
| 17221 | } |
| 17222 | scale_ = scale; |
| 17223 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormGradRequest.scale) |
| 17224 | } |
| 17225 | |
| 17226 | // .xla.ComputationDataHandle mean = 3; |
| 17227 | inline bool BatchNormGradRequest::has_mean() const { |
| 17228 | return this != internal_default_instance() && mean_ != NULL; |
| 17229 | } |
| 17230 | inline void BatchNormGradRequest::clear_mean() { |
| 17231 | if (GetArenaNoVirtual() == NULL && mean_ != NULL) { |
| 17232 | delete mean_; |
| 17233 | } |
| 17234 | mean_ = NULL; |
| 17235 | } |
| 17236 | inline const ::xla::ComputationDataHandle& BatchNormGradRequest::mean() const { |
| 17237 | const ::xla::ComputationDataHandle* p = mean_; |
| 17238 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.mean) |
| 17239 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17240 | &::xla::_ComputationDataHandle_default_instance_); |
| 17241 | } |
| 17242 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::release_mean() { |
| 17243 | // @@protoc_insertion_point(field_release:xla.BatchNormGradRequest.mean) |
| 17244 | |
| 17245 | ::xla::ComputationDataHandle* temp = mean_; |
| 17246 | if (GetArenaNoVirtual() != NULL) { |
| 17247 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17248 | } |
| 17249 | mean_ = NULL; |
| 17250 | return temp; |
| 17251 | } |
| 17252 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::unsafe_arena_release_mean() { |
| 17253 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormGradRequest.mean) |
| 17254 | |
| 17255 | ::xla::ComputationDataHandle* temp = mean_; |
| 17256 | mean_ = NULL; |
| 17257 | return temp; |
| 17258 | } |
| 17259 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::mutable_mean() { |
| 17260 | |
| 17261 | if (mean_ == NULL) { |
| 17262 | mean_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17263 | GetArenaNoVirtual()); |
| 17264 | } |
| 17265 | // @@protoc_insertion_point(field_mutable:xla.BatchNormGradRequest.mean) |
| 17266 | return mean_; |
| 17267 | } |
| 17268 | inline void BatchNormGradRequest::set_allocated_mean(::xla::ComputationDataHandle* mean) { |
| 17269 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17270 | if (message_arena == NULL) { |
| 17271 | delete mean_; |
| 17272 | } |
| 17273 | if (mean) { |
| 17274 | ::google::protobuf::Arena* submessage_arena = |
| 17275 | ::google::protobuf::Arena::GetArena(mean); |
| 17276 | if (message_arena != submessage_arena) { |
| 17277 | mean = ::google::protobuf::internal::GetOwnedMessage( |
| 17278 | message_arena, mean, submessage_arena); |
| 17279 | } |
| 17280 | |
| 17281 | } else { |
| 17282 | |
| 17283 | } |
| 17284 | mean_ = mean; |
| 17285 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormGradRequest.mean) |
| 17286 | } |
| 17287 | |
| 17288 | // .xla.ComputationDataHandle variance = 4; |
| 17289 | inline bool BatchNormGradRequest::has_variance() const { |
| 17290 | return this != internal_default_instance() && variance_ != NULL; |
| 17291 | } |
| 17292 | inline void BatchNormGradRequest::clear_variance() { |
| 17293 | if (GetArenaNoVirtual() == NULL && variance_ != NULL) { |
| 17294 | delete variance_; |
| 17295 | } |
| 17296 | variance_ = NULL; |
| 17297 | } |
| 17298 | inline const ::xla::ComputationDataHandle& BatchNormGradRequest::variance() const { |
| 17299 | const ::xla::ComputationDataHandle* p = variance_; |
| 17300 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.variance) |
| 17301 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17302 | &::xla::_ComputationDataHandle_default_instance_); |
| 17303 | } |
| 17304 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::release_variance() { |
| 17305 | // @@protoc_insertion_point(field_release:xla.BatchNormGradRequest.variance) |
| 17306 | |
| 17307 | ::xla::ComputationDataHandle* temp = variance_; |
| 17308 | if (GetArenaNoVirtual() != NULL) { |
| 17309 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17310 | } |
| 17311 | variance_ = NULL; |
| 17312 | return temp; |
| 17313 | } |
| 17314 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::unsafe_arena_release_variance() { |
| 17315 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormGradRequest.variance) |
| 17316 | |
| 17317 | ::xla::ComputationDataHandle* temp = variance_; |
| 17318 | variance_ = NULL; |
| 17319 | return temp; |
| 17320 | } |
| 17321 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::mutable_variance() { |
| 17322 | |
| 17323 | if (variance_ == NULL) { |
| 17324 | variance_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17325 | GetArenaNoVirtual()); |
| 17326 | } |
| 17327 | // @@protoc_insertion_point(field_mutable:xla.BatchNormGradRequest.variance) |
| 17328 | return variance_; |
| 17329 | } |
| 17330 | inline void BatchNormGradRequest::set_allocated_variance(::xla::ComputationDataHandle* variance) { |
| 17331 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17332 | if (message_arena == NULL) { |
| 17333 | delete variance_; |
| 17334 | } |
| 17335 | if (variance) { |
| 17336 | ::google::protobuf::Arena* submessage_arena = |
| 17337 | ::google::protobuf::Arena::GetArena(variance); |
| 17338 | if (message_arena != submessage_arena) { |
| 17339 | variance = ::google::protobuf::internal::GetOwnedMessage( |
| 17340 | message_arena, variance, submessage_arena); |
| 17341 | } |
| 17342 | |
| 17343 | } else { |
| 17344 | |
| 17345 | } |
| 17346 | variance_ = variance; |
| 17347 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormGradRequest.variance) |
| 17348 | } |
| 17349 | |
| 17350 | // .xla.ComputationDataHandle grad_output = 5; |
| 17351 | inline bool BatchNormGradRequest::has_grad_output() const { |
| 17352 | return this != internal_default_instance() && grad_output_ != NULL; |
| 17353 | } |
| 17354 | inline void BatchNormGradRequest::clear_grad_output() { |
| 17355 | if (GetArenaNoVirtual() == NULL && grad_output_ != NULL) { |
| 17356 | delete grad_output_; |
| 17357 | } |
| 17358 | grad_output_ = NULL; |
| 17359 | } |
| 17360 | inline const ::xla::ComputationDataHandle& BatchNormGradRequest::grad_output() const { |
| 17361 | const ::xla::ComputationDataHandle* p = grad_output_; |
| 17362 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.grad_output) |
| 17363 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17364 | &::xla::_ComputationDataHandle_default_instance_); |
| 17365 | } |
| 17366 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::release_grad_output() { |
| 17367 | // @@protoc_insertion_point(field_release:xla.BatchNormGradRequest.grad_output) |
| 17368 | |
| 17369 | ::xla::ComputationDataHandle* temp = grad_output_; |
| 17370 | if (GetArenaNoVirtual() != NULL) { |
| 17371 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17372 | } |
| 17373 | grad_output_ = NULL; |
| 17374 | return temp; |
| 17375 | } |
| 17376 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::unsafe_arena_release_grad_output() { |
| 17377 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BatchNormGradRequest.grad_output) |
| 17378 | |
| 17379 | ::xla::ComputationDataHandle* temp = grad_output_; |
| 17380 | grad_output_ = NULL; |
| 17381 | return temp; |
| 17382 | } |
| 17383 | inline ::xla::ComputationDataHandle* BatchNormGradRequest::mutable_grad_output() { |
| 17384 | |
| 17385 | if (grad_output_ == NULL) { |
| 17386 | grad_output_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17387 | GetArenaNoVirtual()); |
| 17388 | } |
| 17389 | // @@protoc_insertion_point(field_mutable:xla.BatchNormGradRequest.grad_output) |
| 17390 | return grad_output_; |
| 17391 | } |
| 17392 | inline void BatchNormGradRequest::set_allocated_grad_output(::xla::ComputationDataHandle* grad_output) { |
| 17393 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17394 | if (message_arena == NULL) { |
| 17395 | delete grad_output_; |
| 17396 | } |
| 17397 | if (grad_output) { |
| 17398 | ::google::protobuf::Arena* submessage_arena = |
| 17399 | ::google::protobuf::Arena::GetArena(grad_output); |
| 17400 | if (message_arena != submessage_arena) { |
| 17401 | grad_output = ::google::protobuf::internal::GetOwnedMessage( |
| 17402 | message_arena, grad_output, submessage_arena); |
| 17403 | } |
| 17404 | |
| 17405 | } else { |
| 17406 | |
| 17407 | } |
| 17408 | grad_output_ = grad_output; |
| 17409 | // @@protoc_insertion_point(field_set_allocated:xla.BatchNormGradRequest.grad_output) |
| 17410 | } |
| 17411 | |
| 17412 | // float epsilon = 6; |
| 17413 | inline void BatchNormGradRequest::clear_epsilon() { |
| 17414 | epsilon_ = 0; |
| 17415 | } |
| 17416 | inline float BatchNormGradRequest::epsilon() const { |
| 17417 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.epsilon) |
| 17418 | return epsilon_; |
| 17419 | } |
| 17420 | inline void BatchNormGradRequest::set_epsilon(float value) { |
| 17421 | |
| 17422 | epsilon_ = value; |
| 17423 | // @@protoc_insertion_point(field_set:xla.BatchNormGradRequest.epsilon) |
| 17424 | } |
| 17425 | |
| 17426 | // int64 feature_index = 7; |
| 17427 | inline void BatchNormGradRequest::clear_feature_index() { |
| 17428 | feature_index_ = GOOGLE_LONGLONG(0); |
| 17429 | } |
| 17430 | inline ::google::protobuf::int64 BatchNormGradRequest::feature_index() const { |
| 17431 | // @@protoc_insertion_point(field_get:xla.BatchNormGradRequest.feature_index) |
| 17432 | return feature_index_; |
| 17433 | } |
| 17434 | inline void BatchNormGradRequest::set_feature_index(::google::protobuf::int64 value) { |
| 17435 | |
| 17436 | feature_index_ = value; |
| 17437 | // @@protoc_insertion_point(field_set:xla.BatchNormGradRequest.feature_index) |
| 17438 | } |
| 17439 | |
| 17440 | // ------------------------------------------------------------------- |
| 17441 | |
| 17442 | // CrossReplicaSumRequest |
| 17443 | |
| 17444 | // .xla.ComputationDataHandle operand = 2; |
| 17445 | inline bool CrossReplicaSumRequest::has_operand() const { |
| 17446 | return this != internal_default_instance() && operand_ != NULL; |
| 17447 | } |
| 17448 | inline void CrossReplicaSumRequest::clear_operand() { |
| 17449 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 17450 | delete operand_; |
| 17451 | } |
| 17452 | operand_ = NULL; |
| 17453 | } |
| 17454 | inline const ::xla::ComputationDataHandle& CrossReplicaSumRequest::operand() const { |
| 17455 | const ::xla::ComputationDataHandle* p = operand_; |
| 17456 | // @@protoc_insertion_point(field_get:xla.CrossReplicaSumRequest.operand) |
| 17457 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17458 | &::xla::_ComputationDataHandle_default_instance_); |
| 17459 | } |
| 17460 | inline ::xla::ComputationDataHandle* CrossReplicaSumRequest::release_operand() { |
| 17461 | // @@protoc_insertion_point(field_release:xla.CrossReplicaSumRequest.operand) |
| 17462 | |
| 17463 | ::xla::ComputationDataHandle* temp = operand_; |
| 17464 | if (GetArenaNoVirtual() != NULL) { |
| 17465 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17466 | } |
| 17467 | operand_ = NULL; |
| 17468 | return temp; |
| 17469 | } |
| 17470 | inline ::xla::ComputationDataHandle* CrossReplicaSumRequest::unsafe_arena_release_operand() { |
| 17471 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.CrossReplicaSumRequest.operand) |
| 17472 | |
| 17473 | ::xla::ComputationDataHandle* temp = operand_; |
| 17474 | operand_ = NULL; |
| 17475 | return temp; |
| 17476 | } |
| 17477 | inline ::xla::ComputationDataHandle* CrossReplicaSumRequest::mutable_operand() { |
| 17478 | |
| 17479 | if (operand_ == NULL) { |
| 17480 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17481 | GetArenaNoVirtual()); |
| 17482 | } |
| 17483 | // @@protoc_insertion_point(field_mutable:xla.CrossReplicaSumRequest.operand) |
| 17484 | return operand_; |
| 17485 | } |
| 17486 | inline void CrossReplicaSumRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 17487 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17488 | if (message_arena == NULL) { |
| 17489 | delete operand_; |
| 17490 | } |
| 17491 | if (operand) { |
| 17492 | ::google::protobuf::Arena* submessage_arena = |
| 17493 | ::google::protobuf::Arena::GetArena(operand); |
| 17494 | if (message_arena != submessage_arena) { |
| 17495 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 17496 | message_arena, operand, submessage_arena); |
| 17497 | } |
| 17498 | |
| 17499 | } else { |
| 17500 | |
| 17501 | } |
| 17502 | operand_ = operand; |
| 17503 | // @@protoc_insertion_point(field_set_allocated:xla.CrossReplicaSumRequest.operand) |
| 17504 | } |
| 17505 | |
| 17506 | // ------------------------------------------------------------------- |
| 17507 | |
| 17508 | // SelectAndScatterRequest |
| 17509 | |
| 17510 | // .xla.ComputationDataHandle operand = 2; |
| 17511 | inline bool SelectAndScatterRequest::has_operand() const { |
| 17512 | return this != internal_default_instance() && operand_ != NULL; |
| 17513 | } |
| 17514 | inline void SelectAndScatterRequest::clear_operand() { |
| 17515 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 17516 | delete operand_; |
| 17517 | } |
| 17518 | operand_ = NULL; |
| 17519 | } |
| 17520 | inline const ::xla::ComputationDataHandle& SelectAndScatterRequest::operand() const { |
| 17521 | const ::xla::ComputationDataHandle* p = operand_; |
| 17522 | // @@protoc_insertion_point(field_get:xla.SelectAndScatterRequest.operand) |
| 17523 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17524 | &::xla::_ComputationDataHandle_default_instance_); |
| 17525 | } |
| 17526 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::release_operand() { |
| 17527 | // @@protoc_insertion_point(field_release:xla.SelectAndScatterRequest.operand) |
| 17528 | |
| 17529 | ::xla::ComputationDataHandle* temp = operand_; |
| 17530 | if (GetArenaNoVirtual() != NULL) { |
| 17531 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17532 | } |
| 17533 | operand_ = NULL; |
| 17534 | return temp; |
| 17535 | } |
| 17536 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::unsafe_arena_release_operand() { |
| 17537 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SelectAndScatterRequest.operand) |
| 17538 | |
| 17539 | ::xla::ComputationDataHandle* temp = operand_; |
| 17540 | operand_ = NULL; |
| 17541 | return temp; |
| 17542 | } |
| 17543 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::mutable_operand() { |
| 17544 | |
| 17545 | if (operand_ == NULL) { |
| 17546 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17547 | GetArenaNoVirtual()); |
| 17548 | } |
| 17549 | // @@protoc_insertion_point(field_mutable:xla.SelectAndScatterRequest.operand) |
| 17550 | return operand_; |
| 17551 | } |
| 17552 | inline void SelectAndScatterRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 17553 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17554 | if (message_arena == NULL) { |
| 17555 | delete operand_; |
| 17556 | } |
| 17557 | if (operand) { |
| 17558 | ::google::protobuf::Arena* submessage_arena = |
| 17559 | ::google::protobuf::Arena::GetArena(operand); |
| 17560 | if (message_arena != submessage_arena) { |
| 17561 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 17562 | message_arena, operand, submessage_arena); |
| 17563 | } |
| 17564 | |
| 17565 | } else { |
| 17566 | |
| 17567 | } |
| 17568 | operand_ = operand; |
| 17569 | // @@protoc_insertion_point(field_set_allocated:xla.SelectAndScatterRequest.operand) |
| 17570 | } |
| 17571 | |
| 17572 | // .xla.ComputationDataHandle source = 3; |
| 17573 | inline bool SelectAndScatterRequest::has_source() const { |
| 17574 | return this != internal_default_instance() && source_ != NULL; |
| 17575 | } |
| 17576 | inline void SelectAndScatterRequest::clear_source() { |
| 17577 | if (GetArenaNoVirtual() == NULL && source_ != NULL) { |
| 17578 | delete source_; |
| 17579 | } |
| 17580 | source_ = NULL; |
| 17581 | } |
| 17582 | inline const ::xla::ComputationDataHandle& SelectAndScatterRequest::source() const { |
| 17583 | const ::xla::ComputationDataHandle* p = source_; |
| 17584 | // @@protoc_insertion_point(field_get:xla.SelectAndScatterRequest.source) |
| 17585 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17586 | &::xla::_ComputationDataHandle_default_instance_); |
| 17587 | } |
| 17588 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::release_source() { |
| 17589 | // @@protoc_insertion_point(field_release:xla.SelectAndScatterRequest.source) |
| 17590 | |
| 17591 | ::xla::ComputationDataHandle* temp = source_; |
| 17592 | if (GetArenaNoVirtual() != NULL) { |
| 17593 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17594 | } |
| 17595 | source_ = NULL; |
| 17596 | return temp; |
| 17597 | } |
| 17598 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::unsafe_arena_release_source() { |
| 17599 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SelectAndScatterRequest.source) |
| 17600 | |
| 17601 | ::xla::ComputationDataHandle* temp = source_; |
| 17602 | source_ = NULL; |
| 17603 | return temp; |
| 17604 | } |
| 17605 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::mutable_source() { |
| 17606 | |
| 17607 | if (source_ == NULL) { |
| 17608 | source_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17609 | GetArenaNoVirtual()); |
| 17610 | } |
| 17611 | // @@protoc_insertion_point(field_mutable:xla.SelectAndScatterRequest.source) |
| 17612 | return source_; |
| 17613 | } |
| 17614 | inline void SelectAndScatterRequest::set_allocated_source(::xla::ComputationDataHandle* source) { |
| 17615 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17616 | if (message_arena == NULL) { |
| 17617 | delete source_; |
| 17618 | } |
| 17619 | if (source) { |
| 17620 | ::google::protobuf::Arena* submessage_arena = |
| 17621 | ::google::protobuf::Arena::GetArena(source); |
| 17622 | if (message_arena != submessage_arena) { |
| 17623 | source = ::google::protobuf::internal::GetOwnedMessage( |
| 17624 | message_arena, source, submessage_arena); |
| 17625 | } |
| 17626 | |
| 17627 | } else { |
| 17628 | |
| 17629 | } |
| 17630 | source_ = source; |
| 17631 | // @@protoc_insertion_point(field_set_allocated:xla.SelectAndScatterRequest.source) |
| 17632 | } |
| 17633 | |
| 17634 | // .xla.ComputationDataHandle init_value = 4; |
| 17635 | inline bool SelectAndScatterRequest::has_init_value() const { |
| 17636 | return this != internal_default_instance() && init_value_ != NULL; |
| 17637 | } |
| 17638 | inline void SelectAndScatterRequest::clear_init_value() { |
| 17639 | if (GetArenaNoVirtual() == NULL && init_value_ != NULL) { |
| 17640 | delete init_value_; |
| 17641 | } |
| 17642 | init_value_ = NULL; |
| 17643 | } |
| 17644 | inline const ::xla::ComputationDataHandle& SelectAndScatterRequest::init_value() const { |
| 17645 | const ::xla::ComputationDataHandle* p = init_value_; |
| 17646 | // @@protoc_insertion_point(field_get:xla.SelectAndScatterRequest.init_value) |
| 17647 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17648 | &::xla::_ComputationDataHandle_default_instance_); |
| 17649 | } |
| 17650 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::release_init_value() { |
| 17651 | // @@protoc_insertion_point(field_release:xla.SelectAndScatterRequest.init_value) |
| 17652 | |
| 17653 | ::xla::ComputationDataHandle* temp = init_value_; |
| 17654 | if (GetArenaNoVirtual() != NULL) { |
| 17655 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17656 | } |
| 17657 | init_value_ = NULL; |
| 17658 | return temp; |
| 17659 | } |
| 17660 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::unsafe_arena_release_init_value() { |
| 17661 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SelectAndScatterRequest.init_value) |
| 17662 | |
| 17663 | ::xla::ComputationDataHandle* temp = init_value_; |
| 17664 | init_value_ = NULL; |
| 17665 | return temp; |
| 17666 | } |
| 17667 | inline ::xla::ComputationDataHandle* SelectAndScatterRequest::mutable_init_value() { |
| 17668 | |
| 17669 | if (init_value_ == NULL) { |
| 17670 | init_value_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17671 | GetArenaNoVirtual()); |
| 17672 | } |
| 17673 | // @@protoc_insertion_point(field_mutable:xla.SelectAndScatterRequest.init_value) |
| 17674 | return init_value_; |
| 17675 | } |
| 17676 | inline void SelectAndScatterRequest::set_allocated_init_value(::xla::ComputationDataHandle* init_value) { |
| 17677 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17678 | if (message_arena == NULL) { |
| 17679 | delete init_value_; |
| 17680 | } |
| 17681 | if (init_value) { |
| 17682 | ::google::protobuf::Arena* submessage_arena = |
| 17683 | ::google::protobuf::Arena::GetArena(init_value); |
| 17684 | if (message_arena != submessage_arena) { |
| 17685 | init_value = ::google::protobuf::internal::GetOwnedMessage( |
| 17686 | message_arena, init_value, submessage_arena); |
| 17687 | } |
| 17688 | |
| 17689 | } else { |
| 17690 | |
| 17691 | } |
| 17692 | init_value_ = init_value; |
| 17693 | // @@protoc_insertion_point(field_set_allocated:xla.SelectAndScatterRequest.init_value) |
| 17694 | } |
| 17695 | |
| 17696 | // .xla.Window window = 5; |
| 17697 | inline bool SelectAndScatterRequest::has_window() const { |
| 17698 | return this != internal_default_instance() && window_ != NULL; |
| 17699 | } |
| 17700 | inline void SelectAndScatterRequest::clear_window() { |
| 17701 | if (GetArenaNoVirtual() == NULL && window_ != NULL) { |
| 17702 | delete window_; |
| 17703 | } |
| 17704 | window_ = NULL; |
| 17705 | } |
| 17706 | inline const ::xla::Window& SelectAndScatterRequest::window() const { |
| 17707 | const ::xla::Window* p = window_; |
| 17708 | // @@protoc_insertion_point(field_get:xla.SelectAndScatterRequest.window) |
| 17709 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Window*>( |
| 17710 | &::xla::_Window_default_instance_); |
| 17711 | } |
| 17712 | inline ::xla::Window* SelectAndScatterRequest::release_window() { |
| 17713 | // @@protoc_insertion_point(field_release:xla.SelectAndScatterRequest.window) |
| 17714 | |
| 17715 | ::xla::Window* temp = window_; |
| 17716 | if (GetArenaNoVirtual() != NULL) { |
| 17717 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17718 | } |
| 17719 | window_ = NULL; |
| 17720 | return temp; |
| 17721 | } |
| 17722 | inline ::xla::Window* SelectAndScatterRequest::unsafe_arena_release_window() { |
| 17723 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SelectAndScatterRequest.window) |
| 17724 | |
| 17725 | ::xla::Window* temp = window_; |
| 17726 | window_ = NULL; |
| 17727 | return temp; |
| 17728 | } |
| 17729 | inline ::xla::Window* SelectAndScatterRequest::mutable_window() { |
| 17730 | |
| 17731 | if (window_ == NULL) { |
| 17732 | window_ = ::google::protobuf::Arena::CreateMessage< ::xla::Window >( |
| 17733 | GetArenaNoVirtual()); |
| 17734 | } |
| 17735 | // @@protoc_insertion_point(field_mutable:xla.SelectAndScatterRequest.window) |
| 17736 | return window_; |
| 17737 | } |
| 17738 | inline void SelectAndScatterRequest::set_allocated_window(::xla::Window* window) { |
| 17739 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17740 | if (message_arena == NULL) { |
| 17741 | delete window_; |
| 17742 | } |
| 17743 | if (window) { |
| 17744 | ::google::protobuf::Arena* submessage_arena = |
| 17745 | ::google::protobuf::Arena::GetArena(window); |
| 17746 | if (message_arena != submessage_arena) { |
| 17747 | window = ::google::protobuf::internal::GetOwnedMessage( |
| 17748 | message_arena, window, submessage_arena); |
| 17749 | } |
| 17750 | |
| 17751 | } else { |
| 17752 | |
| 17753 | } |
| 17754 | window_ = window; |
| 17755 | // @@protoc_insertion_point(field_set_allocated:xla.SelectAndScatterRequest.window) |
| 17756 | } |
| 17757 | |
| 17758 | // .xla.ComputationHandle select = 6; |
| 17759 | inline bool SelectAndScatterRequest::has_select() const { |
| 17760 | return this != internal_default_instance() && select_ != NULL; |
| 17761 | } |
| 17762 | inline void SelectAndScatterRequest::clear_select() { |
| 17763 | if (GetArenaNoVirtual() == NULL && select_ != NULL) { |
| 17764 | delete select_; |
| 17765 | } |
| 17766 | select_ = NULL; |
| 17767 | } |
| 17768 | inline const ::xla::ComputationHandle& SelectAndScatterRequest::select() const { |
| 17769 | const ::xla::ComputationHandle* p = select_; |
| 17770 | // @@protoc_insertion_point(field_get:xla.SelectAndScatterRequest.select) |
| 17771 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 17772 | &::xla::_ComputationHandle_default_instance_); |
| 17773 | } |
| 17774 | inline ::xla::ComputationHandle* SelectAndScatterRequest::release_select() { |
| 17775 | // @@protoc_insertion_point(field_release:xla.SelectAndScatterRequest.select) |
| 17776 | |
| 17777 | ::xla::ComputationHandle* temp = select_; |
| 17778 | if (GetArenaNoVirtual() != NULL) { |
| 17779 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17780 | } |
| 17781 | select_ = NULL; |
| 17782 | return temp; |
| 17783 | } |
| 17784 | inline ::xla::ComputationHandle* SelectAndScatterRequest::unsafe_arena_release_select() { |
| 17785 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SelectAndScatterRequest.select) |
| 17786 | |
| 17787 | ::xla::ComputationHandle* temp = select_; |
| 17788 | select_ = NULL; |
| 17789 | return temp; |
| 17790 | } |
| 17791 | inline ::xla::ComputationHandle* SelectAndScatterRequest::mutable_select() { |
| 17792 | |
| 17793 | if (select_ == NULL) { |
| 17794 | select_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 17795 | GetArenaNoVirtual()); |
| 17796 | } |
| 17797 | // @@protoc_insertion_point(field_mutable:xla.SelectAndScatterRequest.select) |
| 17798 | return select_; |
| 17799 | } |
| 17800 | inline void SelectAndScatterRequest::set_allocated_select(::xla::ComputationHandle* select) { |
| 17801 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17802 | if (message_arena == NULL) { |
| 17803 | delete select_; |
| 17804 | } |
| 17805 | if (select) { |
| 17806 | ::google::protobuf::Arena* submessage_arena = |
| 17807 | ::google::protobuf::Arena::GetArena(select); |
| 17808 | if (message_arena != submessage_arena) { |
| 17809 | select = ::google::protobuf::internal::GetOwnedMessage( |
| 17810 | message_arena, select, submessage_arena); |
| 17811 | } |
| 17812 | |
| 17813 | } else { |
| 17814 | |
| 17815 | } |
| 17816 | select_ = select; |
| 17817 | // @@protoc_insertion_point(field_set_allocated:xla.SelectAndScatterRequest.select) |
| 17818 | } |
| 17819 | |
| 17820 | // .xla.ComputationHandle scatter = 7; |
| 17821 | inline bool SelectAndScatterRequest::has_scatter() const { |
| 17822 | return this != internal_default_instance() && scatter_ != NULL; |
| 17823 | } |
| 17824 | inline void SelectAndScatterRequest::clear_scatter() { |
| 17825 | if (GetArenaNoVirtual() == NULL && scatter_ != NULL) { |
| 17826 | delete scatter_; |
| 17827 | } |
| 17828 | scatter_ = NULL; |
| 17829 | } |
| 17830 | inline const ::xla::ComputationHandle& SelectAndScatterRequest::scatter() const { |
| 17831 | const ::xla::ComputationHandle* p = scatter_; |
| 17832 | // @@protoc_insertion_point(field_get:xla.SelectAndScatterRequest.scatter) |
| 17833 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 17834 | &::xla::_ComputationHandle_default_instance_); |
| 17835 | } |
| 17836 | inline ::xla::ComputationHandle* SelectAndScatterRequest::release_scatter() { |
| 17837 | // @@protoc_insertion_point(field_release:xla.SelectAndScatterRequest.scatter) |
| 17838 | |
| 17839 | ::xla::ComputationHandle* temp = scatter_; |
| 17840 | if (GetArenaNoVirtual() != NULL) { |
| 17841 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17842 | } |
| 17843 | scatter_ = NULL; |
| 17844 | return temp; |
| 17845 | } |
| 17846 | inline ::xla::ComputationHandle* SelectAndScatterRequest::unsafe_arena_release_scatter() { |
| 17847 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SelectAndScatterRequest.scatter) |
| 17848 | |
| 17849 | ::xla::ComputationHandle* temp = scatter_; |
| 17850 | scatter_ = NULL; |
| 17851 | return temp; |
| 17852 | } |
| 17853 | inline ::xla::ComputationHandle* SelectAndScatterRequest::mutable_scatter() { |
| 17854 | |
| 17855 | if (scatter_ == NULL) { |
| 17856 | scatter_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 17857 | GetArenaNoVirtual()); |
| 17858 | } |
| 17859 | // @@protoc_insertion_point(field_mutable:xla.SelectAndScatterRequest.scatter) |
| 17860 | return scatter_; |
| 17861 | } |
| 17862 | inline void SelectAndScatterRequest::set_allocated_scatter(::xla::ComputationHandle* scatter) { |
| 17863 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17864 | if (message_arena == NULL) { |
| 17865 | delete scatter_; |
| 17866 | } |
| 17867 | if (scatter) { |
| 17868 | ::google::protobuf::Arena* submessage_arena = |
| 17869 | ::google::protobuf::Arena::GetArena(scatter); |
| 17870 | if (message_arena != submessage_arena) { |
| 17871 | scatter = ::google::protobuf::internal::GetOwnedMessage( |
| 17872 | message_arena, scatter, submessage_arena); |
| 17873 | } |
| 17874 | |
| 17875 | } else { |
| 17876 | |
| 17877 | } |
| 17878 | scatter_ = scatter; |
| 17879 | // @@protoc_insertion_point(field_set_allocated:xla.SelectAndScatterRequest.scatter) |
| 17880 | } |
| 17881 | |
| 17882 | // ------------------------------------------------------------------- |
| 17883 | |
| 17884 | // ReverseRequest |
| 17885 | |
| 17886 | // .xla.ComputationDataHandle operand = 2; |
| 17887 | inline bool ReverseRequest::has_operand() const { |
| 17888 | return this != internal_default_instance() && operand_ != NULL; |
| 17889 | } |
| 17890 | inline void ReverseRequest::clear_operand() { |
| 17891 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 17892 | delete operand_; |
| 17893 | } |
| 17894 | operand_ = NULL; |
| 17895 | } |
| 17896 | inline const ::xla::ComputationDataHandle& ReverseRequest::operand() const { |
| 17897 | const ::xla::ComputationDataHandle* p = operand_; |
| 17898 | // @@protoc_insertion_point(field_get:xla.ReverseRequest.operand) |
| 17899 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17900 | &::xla::_ComputationDataHandle_default_instance_); |
| 17901 | } |
| 17902 | inline ::xla::ComputationDataHandle* ReverseRequest::release_operand() { |
| 17903 | // @@protoc_insertion_point(field_release:xla.ReverseRequest.operand) |
| 17904 | |
| 17905 | ::xla::ComputationDataHandle* temp = operand_; |
| 17906 | if (GetArenaNoVirtual() != NULL) { |
| 17907 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 17908 | } |
| 17909 | operand_ = NULL; |
| 17910 | return temp; |
| 17911 | } |
| 17912 | inline ::xla::ComputationDataHandle* ReverseRequest::unsafe_arena_release_operand() { |
| 17913 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReverseRequest.operand) |
| 17914 | |
| 17915 | ::xla::ComputationDataHandle* temp = operand_; |
| 17916 | operand_ = NULL; |
| 17917 | return temp; |
| 17918 | } |
| 17919 | inline ::xla::ComputationDataHandle* ReverseRequest::mutable_operand() { |
| 17920 | |
| 17921 | if (operand_ == NULL) { |
| 17922 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 17923 | GetArenaNoVirtual()); |
| 17924 | } |
| 17925 | // @@protoc_insertion_point(field_mutable:xla.ReverseRequest.operand) |
| 17926 | return operand_; |
| 17927 | } |
| 17928 | inline void ReverseRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 17929 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 17930 | if (message_arena == NULL) { |
| 17931 | delete operand_; |
| 17932 | } |
| 17933 | if (operand) { |
| 17934 | ::google::protobuf::Arena* submessage_arena = |
| 17935 | ::google::protobuf::Arena::GetArena(operand); |
| 17936 | if (message_arena != submessage_arena) { |
| 17937 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 17938 | message_arena, operand, submessage_arena); |
| 17939 | } |
| 17940 | |
| 17941 | } else { |
| 17942 | |
| 17943 | } |
| 17944 | operand_ = operand; |
| 17945 | // @@protoc_insertion_point(field_set_allocated:xla.ReverseRequest.operand) |
| 17946 | } |
| 17947 | |
| 17948 | // repeated int64 dimensions = 3; |
| 17949 | inline int ReverseRequest::dimensions_size() const { |
| 17950 | return dimensions_.size(); |
| 17951 | } |
| 17952 | inline void ReverseRequest::clear_dimensions() { |
| 17953 | dimensions_.Clear(); |
| 17954 | } |
| 17955 | inline ::google::protobuf::int64 ReverseRequest::dimensions(int index) const { |
| 17956 | // @@protoc_insertion_point(field_get:xla.ReverseRequest.dimensions) |
| 17957 | return dimensions_.Get(index); |
| 17958 | } |
| 17959 | inline void ReverseRequest::set_dimensions(int index, ::google::protobuf::int64 value) { |
| 17960 | dimensions_.Set(index, value); |
| 17961 | // @@protoc_insertion_point(field_set:xla.ReverseRequest.dimensions) |
| 17962 | } |
| 17963 | inline void ReverseRequest::add_dimensions(::google::protobuf::int64 value) { |
| 17964 | dimensions_.Add(value); |
| 17965 | // @@protoc_insertion_point(field_add:xla.ReverseRequest.dimensions) |
| 17966 | } |
| 17967 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 17968 | ReverseRequest::dimensions() const { |
| 17969 | // @@protoc_insertion_point(field_list:xla.ReverseRequest.dimensions) |
| 17970 | return dimensions_; |
| 17971 | } |
| 17972 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 17973 | ReverseRequest::mutable_dimensions() { |
| 17974 | // @@protoc_insertion_point(field_mutable_list:xla.ReverseRequest.dimensions) |
| 17975 | return &dimensions_; |
| 17976 | } |
| 17977 | |
| 17978 | // ------------------------------------------------------------------- |
| 17979 | |
| 17980 | // BroadcastRequest |
| 17981 | |
| 17982 | // .xla.ComputationDataHandle operand = 2; |
| 17983 | inline bool BroadcastRequest::has_operand() const { |
| 17984 | return this != internal_default_instance() && operand_ != NULL; |
| 17985 | } |
| 17986 | inline void BroadcastRequest::clear_operand() { |
| 17987 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 17988 | delete operand_; |
| 17989 | } |
| 17990 | operand_ = NULL; |
| 17991 | } |
| 17992 | inline const ::xla::ComputationDataHandle& BroadcastRequest::operand() const { |
| 17993 | const ::xla::ComputationDataHandle* p = operand_; |
| 17994 | // @@protoc_insertion_point(field_get:xla.BroadcastRequest.operand) |
| 17995 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 17996 | &::xla::_ComputationDataHandle_default_instance_); |
| 17997 | } |
| 17998 | inline ::xla::ComputationDataHandle* BroadcastRequest::release_operand() { |
| 17999 | // @@protoc_insertion_point(field_release:xla.BroadcastRequest.operand) |
| 18000 | |
| 18001 | ::xla::ComputationDataHandle* temp = operand_; |
| 18002 | if (GetArenaNoVirtual() != NULL) { |
| 18003 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18004 | } |
| 18005 | operand_ = NULL; |
| 18006 | return temp; |
| 18007 | } |
| 18008 | inline ::xla::ComputationDataHandle* BroadcastRequest::unsafe_arena_release_operand() { |
| 18009 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BroadcastRequest.operand) |
| 18010 | |
| 18011 | ::xla::ComputationDataHandle* temp = operand_; |
| 18012 | operand_ = NULL; |
| 18013 | return temp; |
| 18014 | } |
| 18015 | inline ::xla::ComputationDataHandle* BroadcastRequest::mutable_operand() { |
| 18016 | |
| 18017 | if (operand_ == NULL) { |
| 18018 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18019 | GetArenaNoVirtual()); |
| 18020 | } |
| 18021 | // @@protoc_insertion_point(field_mutable:xla.BroadcastRequest.operand) |
| 18022 | return operand_; |
| 18023 | } |
| 18024 | inline void BroadcastRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 18025 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18026 | if (message_arena == NULL) { |
| 18027 | delete operand_; |
| 18028 | } |
| 18029 | if (operand) { |
| 18030 | ::google::protobuf::Arena* submessage_arena = |
| 18031 | ::google::protobuf::Arena::GetArena(operand); |
| 18032 | if (message_arena != submessage_arena) { |
| 18033 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 18034 | message_arena, operand, submessage_arena); |
| 18035 | } |
| 18036 | |
| 18037 | } else { |
| 18038 | |
| 18039 | } |
| 18040 | operand_ = operand; |
| 18041 | // @@protoc_insertion_point(field_set_allocated:xla.BroadcastRequest.operand) |
| 18042 | } |
| 18043 | |
| 18044 | // repeated int64 broadcast_sizes = 3; |
| 18045 | inline int BroadcastRequest::broadcast_sizes_size() const { |
| 18046 | return broadcast_sizes_.size(); |
| 18047 | } |
| 18048 | inline void BroadcastRequest::clear_broadcast_sizes() { |
| 18049 | broadcast_sizes_.Clear(); |
| 18050 | } |
| 18051 | inline ::google::protobuf::int64 BroadcastRequest::broadcast_sizes(int index) const { |
| 18052 | // @@protoc_insertion_point(field_get:xla.BroadcastRequest.broadcast_sizes) |
| 18053 | return broadcast_sizes_.Get(index); |
| 18054 | } |
| 18055 | inline void BroadcastRequest::set_broadcast_sizes(int index, ::google::protobuf::int64 value) { |
| 18056 | broadcast_sizes_.Set(index, value); |
| 18057 | // @@protoc_insertion_point(field_set:xla.BroadcastRequest.broadcast_sizes) |
| 18058 | } |
| 18059 | inline void BroadcastRequest::add_broadcast_sizes(::google::protobuf::int64 value) { |
| 18060 | broadcast_sizes_.Add(value); |
| 18061 | // @@protoc_insertion_point(field_add:xla.BroadcastRequest.broadcast_sizes) |
| 18062 | } |
| 18063 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 18064 | BroadcastRequest::broadcast_sizes() const { |
| 18065 | // @@protoc_insertion_point(field_list:xla.BroadcastRequest.broadcast_sizes) |
| 18066 | return broadcast_sizes_; |
| 18067 | } |
| 18068 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 18069 | BroadcastRequest::mutable_broadcast_sizes() { |
| 18070 | // @@protoc_insertion_point(field_mutable_list:xla.BroadcastRequest.broadcast_sizes) |
| 18071 | return &broadcast_sizes_; |
| 18072 | } |
| 18073 | |
| 18074 | // ------------------------------------------------------------------- |
| 18075 | |
| 18076 | // PadRequest |
| 18077 | |
| 18078 | // .xla.ComputationDataHandle operand = 2; |
| 18079 | inline bool PadRequest::has_operand() const { |
| 18080 | return this != internal_default_instance() && operand_ != NULL; |
| 18081 | } |
| 18082 | inline void PadRequest::clear_operand() { |
| 18083 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 18084 | delete operand_; |
| 18085 | } |
| 18086 | operand_ = NULL; |
| 18087 | } |
| 18088 | inline const ::xla::ComputationDataHandle& PadRequest::operand() const { |
| 18089 | const ::xla::ComputationDataHandle* p = operand_; |
| 18090 | // @@protoc_insertion_point(field_get:xla.PadRequest.operand) |
| 18091 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18092 | &::xla::_ComputationDataHandle_default_instance_); |
| 18093 | } |
| 18094 | inline ::xla::ComputationDataHandle* PadRequest::release_operand() { |
| 18095 | // @@protoc_insertion_point(field_release:xla.PadRequest.operand) |
| 18096 | |
| 18097 | ::xla::ComputationDataHandle* temp = operand_; |
| 18098 | if (GetArenaNoVirtual() != NULL) { |
| 18099 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18100 | } |
| 18101 | operand_ = NULL; |
| 18102 | return temp; |
| 18103 | } |
| 18104 | inline ::xla::ComputationDataHandle* PadRequest::unsafe_arena_release_operand() { |
| 18105 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.PadRequest.operand) |
| 18106 | |
| 18107 | ::xla::ComputationDataHandle* temp = operand_; |
| 18108 | operand_ = NULL; |
| 18109 | return temp; |
| 18110 | } |
| 18111 | inline ::xla::ComputationDataHandle* PadRequest::mutable_operand() { |
| 18112 | |
| 18113 | if (operand_ == NULL) { |
| 18114 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18115 | GetArenaNoVirtual()); |
| 18116 | } |
| 18117 | // @@protoc_insertion_point(field_mutable:xla.PadRequest.operand) |
| 18118 | return operand_; |
| 18119 | } |
| 18120 | inline void PadRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 18121 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18122 | if (message_arena == NULL) { |
| 18123 | delete operand_; |
| 18124 | } |
| 18125 | if (operand) { |
| 18126 | ::google::protobuf::Arena* submessage_arena = |
| 18127 | ::google::protobuf::Arena::GetArena(operand); |
| 18128 | if (message_arena != submessage_arena) { |
| 18129 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 18130 | message_arena, operand, submessage_arena); |
| 18131 | } |
| 18132 | |
| 18133 | } else { |
| 18134 | |
| 18135 | } |
| 18136 | operand_ = operand; |
| 18137 | // @@protoc_insertion_point(field_set_allocated:xla.PadRequest.operand) |
| 18138 | } |
| 18139 | |
| 18140 | // .xla.ComputationDataHandle padding_value = 3; |
| 18141 | inline bool PadRequest::has_padding_value() const { |
| 18142 | return this != internal_default_instance() && padding_value_ != NULL; |
| 18143 | } |
| 18144 | inline void PadRequest::clear_padding_value() { |
| 18145 | if (GetArenaNoVirtual() == NULL && padding_value_ != NULL) { |
| 18146 | delete padding_value_; |
| 18147 | } |
| 18148 | padding_value_ = NULL; |
| 18149 | } |
| 18150 | inline const ::xla::ComputationDataHandle& PadRequest::padding_value() const { |
| 18151 | const ::xla::ComputationDataHandle* p = padding_value_; |
| 18152 | // @@protoc_insertion_point(field_get:xla.PadRequest.padding_value) |
| 18153 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18154 | &::xla::_ComputationDataHandle_default_instance_); |
| 18155 | } |
| 18156 | inline ::xla::ComputationDataHandle* PadRequest::release_padding_value() { |
| 18157 | // @@protoc_insertion_point(field_release:xla.PadRequest.padding_value) |
| 18158 | |
| 18159 | ::xla::ComputationDataHandle* temp = padding_value_; |
| 18160 | if (GetArenaNoVirtual() != NULL) { |
| 18161 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18162 | } |
| 18163 | padding_value_ = NULL; |
| 18164 | return temp; |
| 18165 | } |
| 18166 | inline ::xla::ComputationDataHandle* PadRequest::unsafe_arena_release_padding_value() { |
| 18167 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.PadRequest.padding_value) |
| 18168 | |
| 18169 | ::xla::ComputationDataHandle* temp = padding_value_; |
| 18170 | padding_value_ = NULL; |
| 18171 | return temp; |
| 18172 | } |
| 18173 | inline ::xla::ComputationDataHandle* PadRequest::mutable_padding_value() { |
| 18174 | |
| 18175 | if (padding_value_ == NULL) { |
| 18176 | padding_value_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18177 | GetArenaNoVirtual()); |
| 18178 | } |
| 18179 | // @@protoc_insertion_point(field_mutable:xla.PadRequest.padding_value) |
| 18180 | return padding_value_; |
| 18181 | } |
| 18182 | inline void PadRequest::set_allocated_padding_value(::xla::ComputationDataHandle* padding_value) { |
| 18183 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18184 | if (message_arena == NULL) { |
| 18185 | delete padding_value_; |
| 18186 | } |
| 18187 | if (padding_value) { |
| 18188 | ::google::protobuf::Arena* submessage_arena = |
| 18189 | ::google::protobuf::Arena::GetArena(padding_value); |
| 18190 | if (message_arena != submessage_arena) { |
| 18191 | padding_value = ::google::protobuf::internal::GetOwnedMessage( |
| 18192 | message_arena, padding_value, submessage_arena); |
| 18193 | } |
| 18194 | |
| 18195 | } else { |
| 18196 | |
| 18197 | } |
| 18198 | padding_value_ = padding_value; |
| 18199 | // @@protoc_insertion_point(field_set_allocated:xla.PadRequest.padding_value) |
| 18200 | } |
| 18201 | |
| 18202 | // .xla.PaddingConfig padding_config = 4; |
| 18203 | inline bool PadRequest::has_padding_config() const { |
| 18204 | return this != internal_default_instance() && padding_config_ != NULL; |
| 18205 | } |
| 18206 | inline void PadRequest::clear_padding_config() { |
| 18207 | if (GetArenaNoVirtual() == NULL && padding_config_ != NULL) { |
| 18208 | delete padding_config_; |
| 18209 | } |
| 18210 | padding_config_ = NULL; |
| 18211 | } |
| 18212 | inline const ::xla::PaddingConfig& PadRequest::padding_config() const { |
| 18213 | const ::xla::PaddingConfig* p = padding_config_; |
| 18214 | // @@protoc_insertion_point(field_get:xla.PadRequest.padding_config) |
| 18215 | return p != NULL ? *p : *reinterpret_cast<const ::xla::PaddingConfig*>( |
| 18216 | &::xla::_PaddingConfig_default_instance_); |
| 18217 | } |
| 18218 | inline ::xla::PaddingConfig* PadRequest::release_padding_config() { |
| 18219 | // @@protoc_insertion_point(field_release:xla.PadRequest.padding_config) |
| 18220 | |
| 18221 | ::xla::PaddingConfig* temp = padding_config_; |
| 18222 | if (GetArenaNoVirtual() != NULL) { |
| 18223 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18224 | } |
| 18225 | padding_config_ = NULL; |
| 18226 | return temp; |
| 18227 | } |
| 18228 | inline ::xla::PaddingConfig* PadRequest::unsafe_arena_release_padding_config() { |
| 18229 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.PadRequest.padding_config) |
| 18230 | |
| 18231 | ::xla::PaddingConfig* temp = padding_config_; |
| 18232 | padding_config_ = NULL; |
| 18233 | return temp; |
| 18234 | } |
| 18235 | inline ::xla::PaddingConfig* PadRequest::mutable_padding_config() { |
| 18236 | |
| 18237 | if (padding_config_ == NULL) { |
| 18238 | padding_config_ = ::google::protobuf::Arena::CreateMessage< ::xla::PaddingConfig >( |
| 18239 | GetArenaNoVirtual()); |
| 18240 | } |
| 18241 | // @@protoc_insertion_point(field_mutable:xla.PadRequest.padding_config) |
| 18242 | return padding_config_; |
| 18243 | } |
| 18244 | inline void PadRequest::set_allocated_padding_config(::xla::PaddingConfig* padding_config) { |
| 18245 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18246 | if (message_arena == NULL) { |
| 18247 | delete padding_config_; |
| 18248 | } |
| 18249 | if (padding_config) { |
| 18250 | ::google::protobuf::Arena* submessage_arena = |
| 18251 | ::google::protobuf::Arena::GetArena(padding_config); |
| 18252 | if (message_arena != submessage_arena) { |
| 18253 | padding_config = ::google::protobuf::internal::GetOwnedMessage( |
| 18254 | message_arena, padding_config, submessage_arena); |
| 18255 | } |
| 18256 | |
| 18257 | } else { |
| 18258 | |
| 18259 | } |
| 18260 | padding_config_ = padding_config; |
| 18261 | // @@protoc_insertion_point(field_set_allocated:xla.PadRequest.padding_config) |
| 18262 | } |
| 18263 | |
| 18264 | // ------------------------------------------------------------------- |
| 18265 | |
| 18266 | // ReshapeRequest |
| 18267 | |
| 18268 | // .xla.ComputationDataHandle operand = 2; |
| 18269 | inline bool ReshapeRequest::has_operand() const { |
| 18270 | return this != internal_default_instance() && operand_ != NULL; |
| 18271 | } |
| 18272 | inline void ReshapeRequest::clear_operand() { |
| 18273 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 18274 | delete operand_; |
| 18275 | } |
| 18276 | operand_ = NULL; |
| 18277 | } |
| 18278 | inline const ::xla::ComputationDataHandle& ReshapeRequest::operand() const { |
| 18279 | const ::xla::ComputationDataHandle* p = operand_; |
| 18280 | // @@protoc_insertion_point(field_get:xla.ReshapeRequest.operand) |
| 18281 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18282 | &::xla::_ComputationDataHandle_default_instance_); |
| 18283 | } |
| 18284 | inline ::xla::ComputationDataHandle* ReshapeRequest::release_operand() { |
| 18285 | // @@protoc_insertion_point(field_release:xla.ReshapeRequest.operand) |
| 18286 | |
| 18287 | ::xla::ComputationDataHandle* temp = operand_; |
| 18288 | if (GetArenaNoVirtual() != NULL) { |
| 18289 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18290 | } |
| 18291 | operand_ = NULL; |
| 18292 | return temp; |
| 18293 | } |
| 18294 | inline ::xla::ComputationDataHandle* ReshapeRequest::unsafe_arena_release_operand() { |
| 18295 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReshapeRequest.operand) |
| 18296 | |
| 18297 | ::xla::ComputationDataHandle* temp = operand_; |
| 18298 | operand_ = NULL; |
| 18299 | return temp; |
| 18300 | } |
| 18301 | inline ::xla::ComputationDataHandle* ReshapeRequest::mutable_operand() { |
| 18302 | |
| 18303 | if (operand_ == NULL) { |
| 18304 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18305 | GetArenaNoVirtual()); |
| 18306 | } |
| 18307 | // @@protoc_insertion_point(field_mutable:xla.ReshapeRequest.operand) |
| 18308 | return operand_; |
| 18309 | } |
| 18310 | inline void ReshapeRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 18311 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18312 | if (message_arena == NULL) { |
| 18313 | delete operand_; |
| 18314 | } |
| 18315 | if (operand) { |
| 18316 | ::google::protobuf::Arena* submessage_arena = |
| 18317 | ::google::protobuf::Arena::GetArena(operand); |
| 18318 | if (message_arena != submessage_arena) { |
| 18319 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 18320 | message_arena, operand, submessage_arena); |
| 18321 | } |
| 18322 | |
| 18323 | } else { |
| 18324 | |
| 18325 | } |
| 18326 | operand_ = operand; |
| 18327 | // @@protoc_insertion_point(field_set_allocated:xla.ReshapeRequest.operand) |
| 18328 | } |
| 18329 | |
| 18330 | // repeated int64 dimensions = 3; |
| 18331 | inline int ReshapeRequest::dimensions_size() const { |
| 18332 | return dimensions_.size(); |
| 18333 | } |
| 18334 | inline void ReshapeRequest::clear_dimensions() { |
| 18335 | dimensions_.Clear(); |
| 18336 | } |
| 18337 | inline ::google::protobuf::int64 ReshapeRequest::dimensions(int index) const { |
| 18338 | // @@protoc_insertion_point(field_get:xla.ReshapeRequest.dimensions) |
| 18339 | return dimensions_.Get(index); |
| 18340 | } |
| 18341 | inline void ReshapeRequest::set_dimensions(int index, ::google::protobuf::int64 value) { |
| 18342 | dimensions_.Set(index, value); |
| 18343 | // @@protoc_insertion_point(field_set:xla.ReshapeRequest.dimensions) |
| 18344 | } |
| 18345 | inline void ReshapeRequest::add_dimensions(::google::protobuf::int64 value) { |
| 18346 | dimensions_.Add(value); |
| 18347 | // @@protoc_insertion_point(field_add:xla.ReshapeRequest.dimensions) |
| 18348 | } |
| 18349 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 18350 | ReshapeRequest::dimensions() const { |
| 18351 | // @@protoc_insertion_point(field_list:xla.ReshapeRequest.dimensions) |
| 18352 | return dimensions_; |
| 18353 | } |
| 18354 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 18355 | ReshapeRequest::mutable_dimensions() { |
| 18356 | // @@protoc_insertion_point(field_mutable_list:xla.ReshapeRequest.dimensions) |
| 18357 | return &dimensions_; |
| 18358 | } |
| 18359 | |
| 18360 | // repeated int64 new_sizes = 4; |
| 18361 | inline int ReshapeRequest::new_sizes_size() const { |
| 18362 | return new_sizes_.size(); |
| 18363 | } |
| 18364 | inline void ReshapeRequest::clear_new_sizes() { |
| 18365 | new_sizes_.Clear(); |
| 18366 | } |
| 18367 | inline ::google::protobuf::int64 ReshapeRequest::new_sizes(int index) const { |
| 18368 | // @@protoc_insertion_point(field_get:xla.ReshapeRequest.new_sizes) |
| 18369 | return new_sizes_.Get(index); |
| 18370 | } |
| 18371 | inline void ReshapeRequest::set_new_sizes(int index, ::google::protobuf::int64 value) { |
| 18372 | new_sizes_.Set(index, value); |
| 18373 | // @@protoc_insertion_point(field_set:xla.ReshapeRequest.new_sizes) |
| 18374 | } |
| 18375 | inline void ReshapeRequest::add_new_sizes(::google::protobuf::int64 value) { |
| 18376 | new_sizes_.Add(value); |
| 18377 | // @@protoc_insertion_point(field_add:xla.ReshapeRequest.new_sizes) |
| 18378 | } |
| 18379 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 18380 | ReshapeRequest::new_sizes() const { |
| 18381 | // @@protoc_insertion_point(field_list:xla.ReshapeRequest.new_sizes) |
| 18382 | return new_sizes_; |
| 18383 | } |
| 18384 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 18385 | ReshapeRequest::mutable_new_sizes() { |
| 18386 | // @@protoc_insertion_point(field_mutable_list:xla.ReshapeRequest.new_sizes) |
| 18387 | return &new_sizes_; |
| 18388 | } |
| 18389 | |
| 18390 | // ------------------------------------------------------------------- |
| 18391 | |
| 18392 | // TransposeRequest |
| 18393 | |
| 18394 | // .xla.ComputationDataHandle operand = 2; |
| 18395 | inline bool TransposeRequest::has_operand() const { |
| 18396 | return this != internal_default_instance() && operand_ != NULL; |
| 18397 | } |
| 18398 | inline void TransposeRequest::clear_operand() { |
| 18399 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 18400 | delete operand_; |
| 18401 | } |
| 18402 | operand_ = NULL; |
| 18403 | } |
| 18404 | inline const ::xla::ComputationDataHandle& TransposeRequest::operand() const { |
| 18405 | const ::xla::ComputationDataHandle* p = operand_; |
| 18406 | // @@protoc_insertion_point(field_get:xla.TransposeRequest.operand) |
| 18407 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18408 | &::xla::_ComputationDataHandle_default_instance_); |
| 18409 | } |
| 18410 | inline ::xla::ComputationDataHandle* TransposeRequest::release_operand() { |
| 18411 | // @@protoc_insertion_point(field_release:xla.TransposeRequest.operand) |
| 18412 | |
| 18413 | ::xla::ComputationDataHandle* temp = operand_; |
| 18414 | if (GetArenaNoVirtual() != NULL) { |
| 18415 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18416 | } |
| 18417 | operand_ = NULL; |
| 18418 | return temp; |
| 18419 | } |
| 18420 | inline ::xla::ComputationDataHandle* TransposeRequest::unsafe_arena_release_operand() { |
| 18421 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.TransposeRequest.operand) |
| 18422 | |
| 18423 | ::xla::ComputationDataHandle* temp = operand_; |
| 18424 | operand_ = NULL; |
| 18425 | return temp; |
| 18426 | } |
| 18427 | inline ::xla::ComputationDataHandle* TransposeRequest::mutable_operand() { |
| 18428 | |
| 18429 | if (operand_ == NULL) { |
| 18430 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18431 | GetArenaNoVirtual()); |
| 18432 | } |
| 18433 | // @@protoc_insertion_point(field_mutable:xla.TransposeRequest.operand) |
| 18434 | return operand_; |
| 18435 | } |
| 18436 | inline void TransposeRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 18437 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18438 | if (message_arena == NULL) { |
| 18439 | delete operand_; |
| 18440 | } |
| 18441 | if (operand) { |
| 18442 | ::google::protobuf::Arena* submessage_arena = |
| 18443 | ::google::protobuf::Arena::GetArena(operand); |
| 18444 | if (message_arena != submessage_arena) { |
| 18445 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 18446 | message_arena, operand, submessage_arena); |
| 18447 | } |
| 18448 | |
| 18449 | } else { |
| 18450 | |
| 18451 | } |
| 18452 | operand_ = operand; |
| 18453 | // @@protoc_insertion_point(field_set_allocated:xla.TransposeRequest.operand) |
| 18454 | } |
| 18455 | |
| 18456 | // repeated int64 dimensions = 3; |
| 18457 | inline int TransposeRequest::dimensions_size() const { |
| 18458 | return dimensions_.size(); |
| 18459 | } |
| 18460 | inline void TransposeRequest::clear_dimensions() { |
| 18461 | dimensions_.Clear(); |
| 18462 | } |
| 18463 | inline ::google::protobuf::int64 TransposeRequest::dimensions(int index) const { |
| 18464 | // @@protoc_insertion_point(field_get:xla.TransposeRequest.dimensions) |
| 18465 | return dimensions_.Get(index); |
| 18466 | } |
| 18467 | inline void TransposeRequest::set_dimensions(int index, ::google::protobuf::int64 value) { |
| 18468 | dimensions_.Set(index, value); |
| 18469 | // @@protoc_insertion_point(field_set:xla.TransposeRequest.dimensions) |
| 18470 | } |
| 18471 | inline void TransposeRequest::add_dimensions(::google::protobuf::int64 value) { |
| 18472 | dimensions_.Add(value); |
| 18473 | // @@protoc_insertion_point(field_add:xla.TransposeRequest.dimensions) |
| 18474 | } |
| 18475 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 18476 | TransposeRequest::dimensions() const { |
| 18477 | // @@protoc_insertion_point(field_list:xla.TransposeRequest.dimensions) |
| 18478 | return dimensions_; |
| 18479 | } |
| 18480 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 18481 | TransposeRequest::mutable_dimensions() { |
| 18482 | // @@protoc_insertion_point(field_mutable_list:xla.TransposeRequest.dimensions) |
| 18483 | return &dimensions_; |
| 18484 | } |
| 18485 | |
| 18486 | // ------------------------------------------------------------------- |
| 18487 | |
| 18488 | // ParameterRequest |
| 18489 | |
| 18490 | // .xla.Shape shape = 2; |
| 18491 | inline bool ParameterRequest::has_shape() const { |
| 18492 | return this != internal_default_instance() && shape_ != NULL; |
| 18493 | } |
| 18494 | inline void ParameterRequest::clear_shape() { |
| 18495 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 18496 | delete shape_; |
| 18497 | } |
| 18498 | shape_ = NULL; |
| 18499 | } |
| 18500 | inline const ::xla::Shape& ParameterRequest::shape() const { |
| 18501 | const ::xla::Shape* p = shape_; |
| 18502 | // @@protoc_insertion_point(field_get:xla.ParameterRequest.shape) |
| 18503 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 18504 | &::xla::_Shape_default_instance_); |
| 18505 | } |
| 18506 | inline ::xla::Shape* ParameterRequest::release_shape() { |
| 18507 | // @@protoc_insertion_point(field_release:xla.ParameterRequest.shape) |
| 18508 | |
| 18509 | ::xla::Shape* temp = shape_; |
| 18510 | if (GetArenaNoVirtual() != NULL) { |
| 18511 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18512 | } |
| 18513 | shape_ = NULL; |
| 18514 | return temp; |
| 18515 | } |
| 18516 | inline ::xla::Shape* ParameterRequest::unsafe_arena_release_shape() { |
| 18517 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ParameterRequest.shape) |
| 18518 | |
| 18519 | ::xla::Shape* temp = shape_; |
| 18520 | shape_ = NULL; |
| 18521 | return temp; |
| 18522 | } |
| 18523 | inline ::xla::Shape* ParameterRequest::mutable_shape() { |
| 18524 | |
| 18525 | if (shape_ == NULL) { |
| 18526 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 18527 | GetArenaNoVirtual()); |
| 18528 | } |
| 18529 | // @@protoc_insertion_point(field_mutable:xla.ParameterRequest.shape) |
| 18530 | return shape_; |
| 18531 | } |
| 18532 | inline void ParameterRequest::set_allocated_shape(::xla::Shape* shape) { |
| 18533 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18534 | if (message_arena == NULL) { |
| 18535 | delete shape_; |
| 18536 | } |
| 18537 | if (shape) { |
| 18538 | ::google::protobuf::Arena* submessage_arena = |
| 18539 | ::google::protobuf::Arena::GetArena(shape); |
| 18540 | if (message_arena != submessage_arena) { |
| 18541 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 18542 | message_arena, shape, submessage_arena); |
| 18543 | } |
| 18544 | |
| 18545 | } else { |
| 18546 | |
| 18547 | } |
| 18548 | shape_ = shape; |
| 18549 | // @@protoc_insertion_point(field_set_allocated:xla.ParameterRequest.shape) |
| 18550 | } |
| 18551 | |
| 18552 | // int64 parameter = 3; |
| 18553 | inline void ParameterRequest::clear_parameter() { |
| 18554 | parameter_ = GOOGLE_LONGLONG(0); |
| 18555 | } |
| 18556 | inline ::google::protobuf::int64 ParameterRequest::parameter() const { |
| 18557 | // @@protoc_insertion_point(field_get:xla.ParameterRequest.parameter) |
| 18558 | return parameter_; |
| 18559 | } |
| 18560 | inline void ParameterRequest::set_parameter(::google::protobuf::int64 value) { |
| 18561 | |
| 18562 | parameter_ = value; |
| 18563 | // @@protoc_insertion_point(field_set:xla.ParameterRequest.parameter) |
| 18564 | } |
| 18565 | |
| 18566 | // string name = 4; |
| 18567 | inline void ParameterRequest::clear_name() { |
| 18568 | name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 18569 | } |
| 18570 | inline const ::std::string& ParameterRequest::name() const { |
| 18571 | // @@protoc_insertion_point(field_get:xla.ParameterRequest.name) |
| 18572 | return name_.Get(); |
| 18573 | } |
| 18574 | inline void ParameterRequest::set_name(const ::std::string& value) { |
| 18575 | |
| 18576 | name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 18577 | // @@protoc_insertion_point(field_set:xla.ParameterRequest.name) |
| 18578 | } |
| 18579 | #if LANG_CXX11 |
| 18580 | inline void ParameterRequest::set_name(::std::string&& value) { |
| 18581 | |
| 18582 | name_.Set( |
| 18583 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 18584 | // @@protoc_insertion_point(field_set_rvalue:xla.ParameterRequest.name) |
| 18585 | } |
| 18586 | #endif |
| 18587 | inline void ParameterRequest::set_name(const char* value) { |
| 18588 | GOOGLE_DCHECK(value != NULL); |
| 18589 | |
| 18590 | name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 18591 | GetArenaNoVirtual()); |
| 18592 | // @@protoc_insertion_point(field_set_char:xla.ParameterRequest.name) |
| 18593 | } |
| 18594 | inline void ParameterRequest::set_name(const char* value, |
| 18595 | size_t size) { |
| 18596 | |
| 18597 | name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 18598 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 18599 | // @@protoc_insertion_point(field_set_pointer:xla.ParameterRequest.name) |
| 18600 | } |
| 18601 | inline ::std::string* ParameterRequest::mutable_name() { |
| 18602 | |
| 18603 | // @@protoc_insertion_point(field_mutable:xla.ParameterRequest.name) |
| 18604 | return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 18605 | } |
| 18606 | inline ::std::string* ParameterRequest::release_name() { |
| 18607 | // @@protoc_insertion_point(field_release:xla.ParameterRequest.name) |
| 18608 | |
| 18609 | return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 18610 | } |
| 18611 | inline void ParameterRequest::set_allocated_name(::std::string* name) { |
| 18612 | if (name != NULL) { |
| 18613 | |
| 18614 | } else { |
| 18615 | |
| 18616 | } |
| 18617 | name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, |
| 18618 | GetArenaNoVirtual()); |
| 18619 | // @@protoc_insertion_point(field_set_allocated:xla.ParameterRequest.name) |
| 18620 | } |
| 18621 | inline ::std::string* ParameterRequest::unsafe_arena_release_name() { |
| 18622 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ParameterRequest.name) |
| 18623 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 18624 | |
| 18625 | return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 18626 | GetArenaNoVirtual()); |
| 18627 | } |
| 18628 | inline void ParameterRequest::unsafe_arena_set_allocated_name( |
| 18629 | ::std::string* name) { |
| 18630 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 18631 | if (name != NULL) { |
| 18632 | |
| 18633 | } else { |
| 18634 | |
| 18635 | } |
| 18636 | name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 18637 | name, GetArenaNoVirtual()); |
| 18638 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.ParameterRequest.name) |
| 18639 | } |
| 18640 | |
| 18641 | // ------------------------------------------------------------------- |
| 18642 | |
| 18643 | // GetLocalShapeRequest |
| 18644 | |
| 18645 | // .xla.ComputationHandle computation = 1; |
| 18646 | inline bool GetLocalShapeRequest::has_computation() const { |
| 18647 | return this != internal_default_instance() && computation_ != NULL; |
| 18648 | } |
| 18649 | inline void GetLocalShapeRequest::clear_computation() { |
| 18650 | if (GetArenaNoVirtual() == NULL && computation_ != NULL) { |
| 18651 | delete computation_; |
| 18652 | } |
| 18653 | computation_ = NULL; |
| 18654 | } |
| 18655 | inline const ::xla::ComputationHandle& GetLocalShapeRequest::computation() const { |
| 18656 | const ::xla::ComputationHandle* p = computation_; |
| 18657 | // @@protoc_insertion_point(field_get:xla.GetLocalShapeRequest.computation) |
| 18658 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 18659 | &::xla::_ComputationHandle_default_instance_); |
| 18660 | } |
| 18661 | inline ::xla::ComputationHandle* GetLocalShapeRequest::release_computation() { |
| 18662 | // @@protoc_insertion_point(field_release:xla.GetLocalShapeRequest.computation) |
| 18663 | |
| 18664 | ::xla::ComputationHandle* temp = computation_; |
| 18665 | if (GetArenaNoVirtual() != NULL) { |
| 18666 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18667 | } |
| 18668 | computation_ = NULL; |
| 18669 | return temp; |
| 18670 | } |
| 18671 | inline ::xla::ComputationHandle* GetLocalShapeRequest::unsafe_arena_release_computation() { |
| 18672 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GetLocalShapeRequest.computation) |
| 18673 | |
| 18674 | ::xla::ComputationHandle* temp = computation_; |
| 18675 | computation_ = NULL; |
| 18676 | return temp; |
| 18677 | } |
| 18678 | inline ::xla::ComputationHandle* GetLocalShapeRequest::mutable_computation() { |
| 18679 | |
| 18680 | if (computation_ == NULL) { |
| 18681 | computation_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 18682 | GetArenaNoVirtual()); |
| 18683 | } |
| 18684 | // @@protoc_insertion_point(field_mutable:xla.GetLocalShapeRequest.computation) |
| 18685 | return computation_; |
| 18686 | } |
| 18687 | inline void GetLocalShapeRequest::set_allocated_computation(::xla::ComputationHandle* computation) { |
| 18688 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18689 | if (message_arena == NULL) { |
| 18690 | delete computation_; |
| 18691 | } |
| 18692 | if (computation) { |
| 18693 | ::google::protobuf::Arena* submessage_arena = |
| 18694 | ::google::protobuf::Arena::GetArena(computation); |
| 18695 | if (message_arena != submessage_arena) { |
| 18696 | computation = ::google::protobuf::internal::GetOwnedMessage( |
| 18697 | message_arena, computation, submessage_arena); |
| 18698 | } |
| 18699 | |
| 18700 | } else { |
| 18701 | |
| 18702 | } |
| 18703 | computation_ = computation; |
| 18704 | // @@protoc_insertion_point(field_set_allocated:xla.GetLocalShapeRequest.computation) |
| 18705 | } |
| 18706 | |
| 18707 | // .xla.ComputationDataHandle operand = 2; |
| 18708 | inline bool GetLocalShapeRequest::has_operand() const { |
| 18709 | return this != internal_default_instance() && operand_ != NULL; |
| 18710 | } |
| 18711 | inline void GetLocalShapeRequest::clear_operand() { |
| 18712 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 18713 | delete operand_; |
| 18714 | } |
| 18715 | operand_ = NULL; |
| 18716 | } |
| 18717 | inline const ::xla::ComputationDataHandle& GetLocalShapeRequest::operand() const { |
| 18718 | const ::xla::ComputationDataHandle* p = operand_; |
| 18719 | // @@protoc_insertion_point(field_get:xla.GetLocalShapeRequest.operand) |
| 18720 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18721 | &::xla::_ComputationDataHandle_default_instance_); |
| 18722 | } |
| 18723 | inline ::xla::ComputationDataHandle* GetLocalShapeRequest::release_operand() { |
| 18724 | // @@protoc_insertion_point(field_release:xla.GetLocalShapeRequest.operand) |
| 18725 | |
| 18726 | ::xla::ComputationDataHandle* temp = operand_; |
| 18727 | if (GetArenaNoVirtual() != NULL) { |
| 18728 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18729 | } |
| 18730 | operand_ = NULL; |
| 18731 | return temp; |
| 18732 | } |
| 18733 | inline ::xla::ComputationDataHandle* GetLocalShapeRequest::unsafe_arena_release_operand() { |
| 18734 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GetLocalShapeRequest.operand) |
| 18735 | |
| 18736 | ::xla::ComputationDataHandle* temp = operand_; |
| 18737 | operand_ = NULL; |
| 18738 | return temp; |
| 18739 | } |
| 18740 | inline ::xla::ComputationDataHandle* GetLocalShapeRequest::mutable_operand() { |
| 18741 | |
| 18742 | if (operand_ == NULL) { |
| 18743 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18744 | GetArenaNoVirtual()); |
| 18745 | } |
| 18746 | // @@protoc_insertion_point(field_mutable:xla.GetLocalShapeRequest.operand) |
| 18747 | return operand_; |
| 18748 | } |
| 18749 | inline void GetLocalShapeRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 18750 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18751 | if (message_arena == NULL) { |
| 18752 | delete operand_; |
| 18753 | } |
| 18754 | if (operand) { |
| 18755 | ::google::protobuf::Arena* submessage_arena = |
| 18756 | ::google::protobuf::Arena::GetArena(operand); |
| 18757 | if (message_arena != submessage_arena) { |
| 18758 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 18759 | message_arena, operand, submessage_arena); |
| 18760 | } |
| 18761 | |
| 18762 | } else { |
| 18763 | |
| 18764 | } |
| 18765 | operand_ = operand; |
| 18766 | // @@protoc_insertion_point(field_set_allocated:xla.GetLocalShapeRequest.operand) |
| 18767 | } |
| 18768 | |
| 18769 | // ------------------------------------------------------------------- |
| 18770 | |
| 18771 | // GetLocalShapeResponse |
| 18772 | |
| 18773 | // .xla.Shape shape = 1; |
| 18774 | inline bool GetLocalShapeResponse::has_shape() const { |
| 18775 | return this != internal_default_instance() && shape_ != NULL; |
| 18776 | } |
| 18777 | inline void GetLocalShapeResponse::clear_shape() { |
| 18778 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 18779 | delete shape_; |
| 18780 | } |
| 18781 | shape_ = NULL; |
| 18782 | } |
| 18783 | inline const ::xla::Shape& GetLocalShapeResponse::shape() const { |
| 18784 | const ::xla::Shape* p = shape_; |
| 18785 | // @@protoc_insertion_point(field_get:xla.GetLocalShapeResponse.shape) |
| 18786 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 18787 | &::xla::_Shape_default_instance_); |
| 18788 | } |
| 18789 | inline ::xla::Shape* GetLocalShapeResponse::release_shape() { |
| 18790 | // @@protoc_insertion_point(field_release:xla.GetLocalShapeResponse.shape) |
| 18791 | |
| 18792 | ::xla::Shape* temp = shape_; |
| 18793 | if (GetArenaNoVirtual() != NULL) { |
| 18794 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18795 | } |
| 18796 | shape_ = NULL; |
| 18797 | return temp; |
| 18798 | } |
| 18799 | inline ::xla::Shape* GetLocalShapeResponse::unsafe_arena_release_shape() { |
| 18800 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GetLocalShapeResponse.shape) |
| 18801 | |
| 18802 | ::xla::Shape* temp = shape_; |
| 18803 | shape_ = NULL; |
| 18804 | return temp; |
| 18805 | } |
| 18806 | inline ::xla::Shape* GetLocalShapeResponse::mutable_shape() { |
| 18807 | |
| 18808 | if (shape_ == NULL) { |
| 18809 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 18810 | GetArenaNoVirtual()); |
| 18811 | } |
| 18812 | // @@protoc_insertion_point(field_mutable:xla.GetLocalShapeResponse.shape) |
| 18813 | return shape_; |
| 18814 | } |
| 18815 | inline void GetLocalShapeResponse::set_allocated_shape(::xla::Shape* shape) { |
| 18816 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18817 | if (message_arena == NULL) { |
| 18818 | delete shape_; |
| 18819 | } |
| 18820 | if (shape) { |
| 18821 | ::google::protobuf::Arena* submessage_arena = |
| 18822 | ::google::protobuf::Arena::GetArena(shape); |
| 18823 | if (message_arena != submessage_arena) { |
| 18824 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 18825 | message_arena, shape, submessage_arena); |
| 18826 | } |
| 18827 | |
| 18828 | } else { |
| 18829 | |
| 18830 | } |
| 18831 | shape_ = shape; |
| 18832 | // @@protoc_insertion_point(field_set_allocated:xla.GetLocalShapeResponse.shape) |
| 18833 | } |
| 18834 | |
| 18835 | // ------------------------------------------------------------------- |
| 18836 | |
| 18837 | // TraceRequest |
| 18838 | |
| 18839 | // string tag = 2; |
| 18840 | inline void TraceRequest::clear_tag() { |
| 18841 | tag_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 18842 | } |
| 18843 | inline const ::std::string& TraceRequest::tag() const { |
| 18844 | // @@protoc_insertion_point(field_get:xla.TraceRequest.tag) |
| 18845 | return tag_.Get(); |
| 18846 | } |
| 18847 | inline void TraceRequest::set_tag(const ::std::string& value) { |
| 18848 | |
| 18849 | tag_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
| 18850 | // @@protoc_insertion_point(field_set:xla.TraceRequest.tag) |
| 18851 | } |
| 18852 | #if LANG_CXX11 |
| 18853 | inline void TraceRequest::set_tag(::std::string&& value) { |
| 18854 | |
| 18855 | tag_.Set( |
| 18856 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
| 18857 | // @@protoc_insertion_point(field_set_rvalue:xla.TraceRequest.tag) |
| 18858 | } |
| 18859 | #endif |
| 18860 | inline void TraceRequest::set_tag(const char* value) { |
| 18861 | GOOGLE_DCHECK(value != NULL); |
| 18862 | |
| 18863 | tag_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
| 18864 | GetArenaNoVirtual()); |
| 18865 | // @@protoc_insertion_point(field_set_char:xla.TraceRequest.tag) |
| 18866 | } |
| 18867 | inline void TraceRequest::set_tag(const char* value, |
| 18868 | size_t size) { |
| 18869 | |
| 18870 | tag_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 18871 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 18872 | // @@protoc_insertion_point(field_set_pointer:xla.TraceRequest.tag) |
| 18873 | } |
| 18874 | inline ::std::string* TraceRequest::mutable_tag() { |
| 18875 | |
| 18876 | // @@protoc_insertion_point(field_mutable:xla.TraceRequest.tag) |
| 18877 | return tag_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 18878 | } |
| 18879 | inline ::std::string* TraceRequest::release_tag() { |
| 18880 | // @@protoc_insertion_point(field_release:xla.TraceRequest.tag) |
| 18881 | |
| 18882 | return tag_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
| 18883 | } |
| 18884 | inline void TraceRequest::set_allocated_tag(::std::string* tag) { |
| 18885 | if (tag != NULL) { |
| 18886 | |
| 18887 | } else { |
| 18888 | |
| 18889 | } |
| 18890 | tag_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag, |
| 18891 | GetArenaNoVirtual()); |
| 18892 | // @@protoc_insertion_point(field_set_allocated:xla.TraceRequest.tag) |
| 18893 | } |
| 18894 | inline ::std::string* TraceRequest::unsafe_arena_release_tag() { |
| 18895 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.TraceRequest.tag) |
| 18896 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 18897 | |
| 18898 | return tag_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 18899 | GetArenaNoVirtual()); |
| 18900 | } |
| 18901 | inline void TraceRequest::unsafe_arena_set_allocated_tag( |
| 18902 | ::std::string* tag) { |
| 18903 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 18904 | if (tag != NULL) { |
| 18905 | |
| 18906 | } else { |
| 18907 | |
| 18908 | } |
| 18909 | tag_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 18910 | tag, GetArenaNoVirtual()); |
| 18911 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.TraceRequest.tag) |
| 18912 | } |
| 18913 | |
| 18914 | // .xla.ComputationDataHandle operand = 3; |
| 18915 | inline bool TraceRequest::has_operand() const { |
| 18916 | return this != internal_default_instance() && operand_ != NULL; |
| 18917 | } |
| 18918 | inline void TraceRequest::clear_operand() { |
| 18919 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 18920 | delete operand_; |
| 18921 | } |
| 18922 | operand_ = NULL; |
| 18923 | } |
| 18924 | inline const ::xla::ComputationDataHandle& TraceRequest::operand() const { |
| 18925 | const ::xla::ComputationDataHandle* p = operand_; |
| 18926 | // @@protoc_insertion_point(field_get:xla.TraceRequest.operand) |
| 18927 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18928 | &::xla::_ComputationDataHandle_default_instance_); |
| 18929 | } |
| 18930 | inline ::xla::ComputationDataHandle* TraceRequest::release_operand() { |
| 18931 | // @@protoc_insertion_point(field_release:xla.TraceRequest.operand) |
| 18932 | |
| 18933 | ::xla::ComputationDataHandle* temp = operand_; |
| 18934 | if (GetArenaNoVirtual() != NULL) { |
| 18935 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 18936 | } |
| 18937 | operand_ = NULL; |
| 18938 | return temp; |
| 18939 | } |
| 18940 | inline ::xla::ComputationDataHandle* TraceRequest::unsafe_arena_release_operand() { |
| 18941 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.TraceRequest.operand) |
| 18942 | |
| 18943 | ::xla::ComputationDataHandle* temp = operand_; |
| 18944 | operand_ = NULL; |
| 18945 | return temp; |
| 18946 | } |
| 18947 | inline ::xla::ComputationDataHandle* TraceRequest::mutable_operand() { |
| 18948 | |
| 18949 | if (operand_ == NULL) { |
| 18950 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 18951 | GetArenaNoVirtual()); |
| 18952 | } |
| 18953 | // @@protoc_insertion_point(field_mutable:xla.TraceRequest.operand) |
| 18954 | return operand_; |
| 18955 | } |
| 18956 | inline void TraceRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 18957 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 18958 | if (message_arena == NULL) { |
| 18959 | delete operand_; |
| 18960 | } |
| 18961 | if (operand) { |
| 18962 | ::google::protobuf::Arena* submessage_arena = |
| 18963 | ::google::protobuf::Arena::GetArena(operand); |
| 18964 | if (message_arena != submessage_arena) { |
| 18965 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 18966 | message_arena, operand, submessage_arena); |
| 18967 | } |
| 18968 | |
| 18969 | } else { |
| 18970 | |
| 18971 | } |
| 18972 | operand_ = operand; |
| 18973 | // @@protoc_insertion_point(field_set_allocated:xla.TraceRequest.operand) |
| 18974 | } |
| 18975 | |
| 18976 | // ------------------------------------------------------------------- |
| 18977 | |
| 18978 | // ConvertRequest |
| 18979 | |
| 18980 | // .xla.ComputationDataHandle operand = 2; |
| 18981 | inline bool ConvertRequest::has_operand() const { |
| 18982 | return this != internal_default_instance() && operand_ != NULL; |
| 18983 | } |
| 18984 | inline void ConvertRequest::clear_operand() { |
| 18985 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 18986 | delete operand_; |
| 18987 | } |
| 18988 | operand_ = NULL; |
| 18989 | } |
| 18990 | inline const ::xla::ComputationDataHandle& ConvertRequest::operand() const { |
| 18991 | const ::xla::ComputationDataHandle* p = operand_; |
| 18992 | // @@protoc_insertion_point(field_get:xla.ConvertRequest.operand) |
| 18993 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 18994 | &::xla::_ComputationDataHandle_default_instance_); |
| 18995 | } |
| 18996 | inline ::xla::ComputationDataHandle* ConvertRequest::release_operand() { |
| 18997 | // @@protoc_insertion_point(field_release:xla.ConvertRequest.operand) |
| 18998 | |
| 18999 | ::xla::ComputationDataHandle* temp = operand_; |
| 19000 | if (GetArenaNoVirtual() != NULL) { |
| 19001 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19002 | } |
| 19003 | operand_ = NULL; |
| 19004 | return temp; |
| 19005 | } |
| 19006 | inline ::xla::ComputationDataHandle* ConvertRequest::unsafe_arena_release_operand() { |
| 19007 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConvertRequest.operand) |
| 19008 | |
| 19009 | ::xla::ComputationDataHandle* temp = operand_; |
| 19010 | operand_ = NULL; |
| 19011 | return temp; |
| 19012 | } |
| 19013 | inline ::xla::ComputationDataHandle* ConvertRequest::mutable_operand() { |
| 19014 | |
| 19015 | if (operand_ == NULL) { |
| 19016 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19017 | GetArenaNoVirtual()); |
| 19018 | } |
| 19019 | // @@protoc_insertion_point(field_mutable:xla.ConvertRequest.operand) |
| 19020 | return operand_; |
| 19021 | } |
| 19022 | inline void ConvertRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 19023 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19024 | if (message_arena == NULL) { |
| 19025 | delete operand_; |
| 19026 | } |
| 19027 | if (operand) { |
| 19028 | ::google::protobuf::Arena* submessage_arena = |
| 19029 | ::google::protobuf::Arena::GetArena(operand); |
| 19030 | if (message_arena != submessage_arena) { |
| 19031 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 19032 | message_arena, operand, submessage_arena); |
| 19033 | } |
| 19034 | |
| 19035 | } else { |
| 19036 | |
| 19037 | } |
| 19038 | operand_ = operand; |
| 19039 | // @@protoc_insertion_point(field_set_allocated:xla.ConvertRequest.operand) |
| 19040 | } |
| 19041 | |
| 19042 | // .xla.PrimitiveType new_element_type = 3; |
| 19043 | inline void ConvertRequest::clear_new_element_type() { |
| 19044 | new_element_type_ = 0; |
| 19045 | } |
| 19046 | inline ::xla::PrimitiveType ConvertRequest::new_element_type() const { |
| 19047 | // @@protoc_insertion_point(field_get:xla.ConvertRequest.new_element_type) |
| 19048 | return static_cast< ::xla::PrimitiveType >(new_element_type_); |
| 19049 | } |
| 19050 | inline void ConvertRequest::set_new_element_type(::xla::PrimitiveType value) { |
| 19051 | |
| 19052 | new_element_type_ = value; |
| 19053 | // @@protoc_insertion_point(field_set:xla.ConvertRequest.new_element_type) |
| 19054 | } |
| 19055 | |
| 19056 | // ------------------------------------------------------------------- |
| 19057 | |
| 19058 | // ConcatenateRequest |
| 19059 | |
| 19060 | // repeated .xla.ComputationDataHandle operands = 2; |
| 19061 | inline int ConcatenateRequest::operands_size() const { |
| 19062 | return operands_.size(); |
| 19063 | } |
| 19064 | inline void ConcatenateRequest::clear_operands() { |
| 19065 | operands_.Clear(); |
| 19066 | } |
| 19067 | inline ::xla::ComputationDataHandle* ConcatenateRequest::mutable_operands(int index) { |
| 19068 | // @@protoc_insertion_point(field_mutable:xla.ConcatenateRequest.operands) |
| 19069 | return operands_.Mutable(index); |
| 19070 | } |
| 19071 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 19072 | ConcatenateRequest::mutable_operands() { |
| 19073 | // @@protoc_insertion_point(field_mutable_list:xla.ConcatenateRequest.operands) |
| 19074 | return &operands_; |
| 19075 | } |
| 19076 | inline const ::xla::ComputationDataHandle& ConcatenateRequest::operands(int index) const { |
| 19077 | // @@protoc_insertion_point(field_get:xla.ConcatenateRequest.operands) |
| 19078 | return operands_.Get(index); |
| 19079 | } |
| 19080 | inline ::xla::ComputationDataHandle* ConcatenateRequest::add_operands() { |
| 19081 | // @@protoc_insertion_point(field_add:xla.ConcatenateRequest.operands) |
| 19082 | return operands_.Add(); |
| 19083 | } |
| 19084 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 19085 | ConcatenateRequest::operands() const { |
| 19086 | // @@protoc_insertion_point(field_list:xla.ConcatenateRequest.operands) |
| 19087 | return operands_; |
| 19088 | } |
| 19089 | |
| 19090 | // int64 dimension = 3; |
| 19091 | inline void ConcatenateRequest::clear_dimension() { |
| 19092 | dimension_ = GOOGLE_LONGLONG(0); |
| 19093 | } |
| 19094 | inline ::google::protobuf::int64 ConcatenateRequest::dimension() const { |
| 19095 | // @@protoc_insertion_point(field_get:xla.ConcatenateRequest.dimension) |
| 19096 | return dimension_; |
| 19097 | } |
| 19098 | inline void ConcatenateRequest::set_dimension(::google::protobuf::int64 value) { |
| 19099 | |
| 19100 | dimension_ = value; |
| 19101 | // @@protoc_insertion_point(field_set:xla.ConcatenateRequest.dimension) |
| 19102 | } |
| 19103 | |
| 19104 | // ------------------------------------------------------------------- |
| 19105 | |
| 19106 | // ConditionalRequest |
| 19107 | |
| 19108 | // .xla.ComputationDataHandle predicate = 2; |
| 19109 | inline bool ConditionalRequest::has_predicate() const { |
| 19110 | return this != internal_default_instance() && predicate_ != NULL; |
| 19111 | } |
| 19112 | inline void ConditionalRequest::clear_predicate() { |
| 19113 | if (GetArenaNoVirtual() == NULL && predicate_ != NULL) { |
| 19114 | delete predicate_; |
| 19115 | } |
| 19116 | predicate_ = NULL; |
| 19117 | } |
| 19118 | inline const ::xla::ComputationDataHandle& ConditionalRequest::predicate() const { |
| 19119 | const ::xla::ComputationDataHandle* p = predicate_; |
| 19120 | // @@protoc_insertion_point(field_get:xla.ConditionalRequest.predicate) |
| 19121 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19122 | &::xla::_ComputationDataHandle_default_instance_); |
| 19123 | } |
| 19124 | inline ::xla::ComputationDataHandle* ConditionalRequest::release_predicate() { |
| 19125 | // @@protoc_insertion_point(field_release:xla.ConditionalRequest.predicate) |
| 19126 | |
| 19127 | ::xla::ComputationDataHandle* temp = predicate_; |
| 19128 | if (GetArenaNoVirtual() != NULL) { |
| 19129 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19130 | } |
| 19131 | predicate_ = NULL; |
| 19132 | return temp; |
| 19133 | } |
| 19134 | inline ::xla::ComputationDataHandle* ConditionalRequest::unsafe_arena_release_predicate() { |
| 19135 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConditionalRequest.predicate) |
| 19136 | |
| 19137 | ::xla::ComputationDataHandle* temp = predicate_; |
| 19138 | predicate_ = NULL; |
| 19139 | return temp; |
| 19140 | } |
| 19141 | inline ::xla::ComputationDataHandle* ConditionalRequest::mutable_predicate() { |
| 19142 | |
| 19143 | if (predicate_ == NULL) { |
| 19144 | predicate_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19145 | GetArenaNoVirtual()); |
| 19146 | } |
| 19147 | // @@protoc_insertion_point(field_mutable:xla.ConditionalRequest.predicate) |
| 19148 | return predicate_; |
| 19149 | } |
| 19150 | inline void ConditionalRequest::set_allocated_predicate(::xla::ComputationDataHandle* predicate) { |
| 19151 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19152 | if (message_arena == NULL) { |
| 19153 | delete predicate_; |
| 19154 | } |
| 19155 | if (predicate) { |
| 19156 | ::google::protobuf::Arena* submessage_arena = |
| 19157 | ::google::protobuf::Arena::GetArena(predicate); |
| 19158 | if (message_arena != submessage_arena) { |
| 19159 | predicate = ::google::protobuf::internal::GetOwnedMessage( |
| 19160 | message_arena, predicate, submessage_arena); |
| 19161 | } |
| 19162 | |
| 19163 | } else { |
| 19164 | |
| 19165 | } |
| 19166 | predicate_ = predicate; |
| 19167 | // @@protoc_insertion_point(field_set_allocated:xla.ConditionalRequest.predicate) |
| 19168 | } |
| 19169 | |
| 19170 | // .xla.ComputationDataHandle true_operand = 3; |
| 19171 | inline bool ConditionalRequest::has_true_operand() const { |
| 19172 | return this != internal_default_instance() && true_operand_ != NULL; |
| 19173 | } |
| 19174 | inline void ConditionalRequest::clear_true_operand() { |
| 19175 | if (GetArenaNoVirtual() == NULL && true_operand_ != NULL) { |
| 19176 | delete true_operand_; |
| 19177 | } |
| 19178 | true_operand_ = NULL; |
| 19179 | } |
| 19180 | inline const ::xla::ComputationDataHandle& ConditionalRequest::true_operand() const { |
| 19181 | const ::xla::ComputationDataHandle* p = true_operand_; |
| 19182 | // @@protoc_insertion_point(field_get:xla.ConditionalRequest.true_operand) |
| 19183 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19184 | &::xla::_ComputationDataHandle_default_instance_); |
| 19185 | } |
| 19186 | inline ::xla::ComputationDataHandle* ConditionalRequest::release_true_operand() { |
| 19187 | // @@protoc_insertion_point(field_release:xla.ConditionalRequest.true_operand) |
| 19188 | |
| 19189 | ::xla::ComputationDataHandle* temp = true_operand_; |
| 19190 | if (GetArenaNoVirtual() != NULL) { |
| 19191 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19192 | } |
| 19193 | true_operand_ = NULL; |
| 19194 | return temp; |
| 19195 | } |
| 19196 | inline ::xla::ComputationDataHandle* ConditionalRequest::unsafe_arena_release_true_operand() { |
| 19197 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConditionalRequest.true_operand) |
| 19198 | |
| 19199 | ::xla::ComputationDataHandle* temp = true_operand_; |
| 19200 | true_operand_ = NULL; |
| 19201 | return temp; |
| 19202 | } |
| 19203 | inline ::xla::ComputationDataHandle* ConditionalRequest::mutable_true_operand() { |
| 19204 | |
| 19205 | if (true_operand_ == NULL) { |
| 19206 | true_operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19207 | GetArenaNoVirtual()); |
| 19208 | } |
| 19209 | // @@protoc_insertion_point(field_mutable:xla.ConditionalRequest.true_operand) |
| 19210 | return true_operand_; |
| 19211 | } |
| 19212 | inline void ConditionalRequest::set_allocated_true_operand(::xla::ComputationDataHandle* true_operand) { |
| 19213 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19214 | if (message_arena == NULL) { |
| 19215 | delete true_operand_; |
| 19216 | } |
| 19217 | if (true_operand) { |
| 19218 | ::google::protobuf::Arena* submessage_arena = |
| 19219 | ::google::protobuf::Arena::GetArena(true_operand); |
| 19220 | if (message_arena != submessage_arena) { |
| 19221 | true_operand = ::google::protobuf::internal::GetOwnedMessage( |
| 19222 | message_arena, true_operand, submessage_arena); |
| 19223 | } |
| 19224 | |
| 19225 | } else { |
| 19226 | |
| 19227 | } |
| 19228 | true_operand_ = true_operand; |
| 19229 | // @@protoc_insertion_point(field_set_allocated:xla.ConditionalRequest.true_operand) |
| 19230 | } |
| 19231 | |
| 19232 | // .xla.ComputationHandle true_computation = 4; |
| 19233 | inline bool ConditionalRequest::has_true_computation() const { |
| 19234 | return this != internal_default_instance() && true_computation_ != NULL; |
| 19235 | } |
| 19236 | inline void ConditionalRequest::clear_true_computation() { |
| 19237 | if (GetArenaNoVirtual() == NULL && true_computation_ != NULL) { |
| 19238 | delete true_computation_; |
| 19239 | } |
| 19240 | true_computation_ = NULL; |
| 19241 | } |
| 19242 | inline const ::xla::ComputationHandle& ConditionalRequest::true_computation() const { |
| 19243 | const ::xla::ComputationHandle* p = true_computation_; |
| 19244 | // @@protoc_insertion_point(field_get:xla.ConditionalRequest.true_computation) |
| 19245 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 19246 | &::xla::_ComputationHandle_default_instance_); |
| 19247 | } |
| 19248 | inline ::xla::ComputationHandle* ConditionalRequest::release_true_computation() { |
| 19249 | // @@protoc_insertion_point(field_release:xla.ConditionalRequest.true_computation) |
| 19250 | |
| 19251 | ::xla::ComputationHandle* temp = true_computation_; |
| 19252 | if (GetArenaNoVirtual() != NULL) { |
| 19253 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19254 | } |
| 19255 | true_computation_ = NULL; |
| 19256 | return temp; |
| 19257 | } |
| 19258 | inline ::xla::ComputationHandle* ConditionalRequest::unsafe_arena_release_true_computation() { |
| 19259 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConditionalRequest.true_computation) |
| 19260 | |
| 19261 | ::xla::ComputationHandle* temp = true_computation_; |
| 19262 | true_computation_ = NULL; |
| 19263 | return temp; |
| 19264 | } |
| 19265 | inline ::xla::ComputationHandle* ConditionalRequest::mutable_true_computation() { |
| 19266 | |
| 19267 | if (true_computation_ == NULL) { |
| 19268 | true_computation_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 19269 | GetArenaNoVirtual()); |
| 19270 | } |
| 19271 | // @@protoc_insertion_point(field_mutable:xla.ConditionalRequest.true_computation) |
| 19272 | return true_computation_; |
| 19273 | } |
| 19274 | inline void ConditionalRequest::set_allocated_true_computation(::xla::ComputationHandle* true_computation) { |
| 19275 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19276 | if (message_arena == NULL) { |
| 19277 | delete true_computation_; |
| 19278 | } |
| 19279 | if (true_computation) { |
| 19280 | ::google::protobuf::Arena* submessage_arena = |
| 19281 | ::google::protobuf::Arena::GetArena(true_computation); |
| 19282 | if (message_arena != submessage_arena) { |
| 19283 | true_computation = ::google::protobuf::internal::GetOwnedMessage( |
| 19284 | message_arena, true_computation, submessage_arena); |
| 19285 | } |
| 19286 | |
| 19287 | } else { |
| 19288 | |
| 19289 | } |
| 19290 | true_computation_ = true_computation; |
| 19291 | // @@protoc_insertion_point(field_set_allocated:xla.ConditionalRequest.true_computation) |
| 19292 | } |
| 19293 | |
| 19294 | // .xla.ComputationDataHandle false_operand = 5; |
| 19295 | inline bool ConditionalRequest::has_false_operand() const { |
| 19296 | return this != internal_default_instance() && false_operand_ != NULL; |
| 19297 | } |
| 19298 | inline void ConditionalRequest::clear_false_operand() { |
| 19299 | if (GetArenaNoVirtual() == NULL && false_operand_ != NULL) { |
| 19300 | delete false_operand_; |
| 19301 | } |
| 19302 | false_operand_ = NULL; |
| 19303 | } |
| 19304 | inline const ::xla::ComputationDataHandle& ConditionalRequest::false_operand() const { |
| 19305 | const ::xla::ComputationDataHandle* p = false_operand_; |
| 19306 | // @@protoc_insertion_point(field_get:xla.ConditionalRequest.false_operand) |
| 19307 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19308 | &::xla::_ComputationDataHandle_default_instance_); |
| 19309 | } |
| 19310 | inline ::xla::ComputationDataHandle* ConditionalRequest::release_false_operand() { |
| 19311 | // @@protoc_insertion_point(field_release:xla.ConditionalRequest.false_operand) |
| 19312 | |
| 19313 | ::xla::ComputationDataHandle* temp = false_operand_; |
| 19314 | if (GetArenaNoVirtual() != NULL) { |
| 19315 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19316 | } |
| 19317 | false_operand_ = NULL; |
| 19318 | return temp; |
| 19319 | } |
| 19320 | inline ::xla::ComputationDataHandle* ConditionalRequest::unsafe_arena_release_false_operand() { |
| 19321 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConditionalRequest.false_operand) |
| 19322 | |
| 19323 | ::xla::ComputationDataHandle* temp = false_operand_; |
| 19324 | false_operand_ = NULL; |
| 19325 | return temp; |
| 19326 | } |
| 19327 | inline ::xla::ComputationDataHandle* ConditionalRequest::mutable_false_operand() { |
| 19328 | |
| 19329 | if (false_operand_ == NULL) { |
| 19330 | false_operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19331 | GetArenaNoVirtual()); |
| 19332 | } |
| 19333 | // @@protoc_insertion_point(field_mutable:xla.ConditionalRequest.false_operand) |
| 19334 | return false_operand_; |
| 19335 | } |
| 19336 | inline void ConditionalRequest::set_allocated_false_operand(::xla::ComputationDataHandle* false_operand) { |
| 19337 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19338 | if (message_arena == NULL) { |
| 19339 | delete false_operand_; |
| 19340 | } |
| 19341 | if (false_operand) { |
| 19342 | ::google::protobuf::Arena* submessage_arena = |
| 19343 | ::google::protobuf::Arena::GetArena(false_operand); |
| 19344 | if (message_arena != submessage_arena) { |
| 19345 | false_operand = ::google::protobuf::internal::GetOwnedMessage( |
| 19346 | message_arena, false_operand, submessage_arena); |
| 19347 | } |
| 19348 | |
| 19349 | } else { |
| 19350 | |
| 19351 | } |
| 19352 | false_operand_ = false_operand; |
| 19353 | // @@protoc_insertion_point(field_set_allocated:xla.ConditionalRequest.false_operand) |
| 19354 | } |
| 19355 | |
| 19356 | // .xla.ComputationHandle false_computation = 6; |
| 19357 | inline bool ConditionalRequest::has_false_computation() const { |
| 19358 | return this != internal_default_instance() && false_computation_ != NULL; |
| 19359 | } |
| 19360 | inline void ConditionalRequest::clear_false_computation() { |
| 19361 | if (GetArenaNoVirtual() == NULL && false_computation_ != NULL) { |
| 19362 | delete false_computation_; |
| 19363 | } |
| 19364 | false_computation_ = NULL; |
| 19365 | } |
| 19366 | inline const ::xla::ComputationHandle& ConditionalRequest::false_computation() const { |
| 19367 | const ::xla::ComputationHandle* p = false_computation_; |
| 19368 | // @@protoc_insertion_point(field_get:xla.ConditionalRequest.false_computation) |
| 19369 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 19370 | &::xla::_ComputationHandle_default_instance_); |
| 19371 | } |
| 19372 | inline ::xla::ComputationHandle* ConditionalRequest::release_false_computation() { |
| 19373 | // @@protoc_insertion_point(field_release:xla.ConditionalRequest.false_computation) |
| 19374 | |
| 19375 | ::xla::ComputationHandle* temp = false_computation_; |
| 19376 | if (GetArenaNoVirtual() != NULL) { |
| 19377 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19378 | } |
| 19379 | false_computation_ = NULL; |
| 19380 | return temp; |
| 19381 | } |
| 19382 | inline ::xla::ComputationHandle* ConditionalRequest::unsafe_arena_release_false_computation() { |
| 19383 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ConditionalRequest.false_computation) |
| 19384 | |
| 19385 | ::xla::ComputationHandle* temp = false_computation_; |
| 19386 | false_computation_ = NULL; |
| 19387 | return temp; |
| 19388 | } |
| 19389 | inline ::xla::ComputationHandle* ConditionalRequest::mutable_false_computation() { |
| 19390 | |
| 19391 | if (false_computation_ == NULL) { |
| 19392 | false_computation_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 19393 | GetArenaNoVirtual()); |
| 19394 | } |
| 19395 | // @@protoc_insertion_point(field_mutable:xla.ConditionalRequest.false_computation) |
| 19396 | return false_computation_; |
| 19397 | } |
| 19398 | inline void ConditionalRequest::set_allocated_false_computation(::xla::ComputationHandle* false_computation) { |
| 19399 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19400 | if (message_arena == NULL) { |
| 19401 | delete false_computation_; |
| 19402 | } |
| 19403 | if (false_computation) { |
| 19404 | ::google::protobuf::Arena* submessage_arena = |
| 19405 | ::google::protobuf::Arena::GetArena(false_computation); |
| 19406 | if (message_arena != submessage_arena) { |
| 19407 | false_computation = ::google::protobuf::internal::GetOwnedMessage( |
| 19408 | message_arena, false_computation, submessage_arena); |
| 19409 | } |
| 19410 | |
| 19411 | } else { |
| 19412 | |
| 19413 | } |
| 19414 | false_computation_ = false_computation; |
| 19415 | // @@protoc_insertion_point(field_set_allocated:xla.ConditionalRequest.false_computation) |
| 19416 | } |
| 19417 | |
| 19418 | // ------------------------------------------------------------------- |
| 19419 | |
| 19420 | // WhileRequest |
| 19421 | |
| 19422 | // .xla.ComputationHandle condition = 2; |
| 19423 | inline bool WhileRequest::has_condition() const { |
| 19424 | return this != internal_default_instance() && condition_ != NULL; |
| 19425 | } |
| 19426 | inline void WhileRequest::clear_condition() { |
| 19427 | if (GetArenaNoVirtual() == NULL && condition_ != NULL) { |
| 19428 | delete condition_; |
| 19429 | } |
| 19430 | condition_ = NULL; |
| 19431 | } |
| 19432 | inline const ::xla::ComputationHandle& WhileRequest::condition() const { |
| 19433 | const ::xla::ComputationHandle* p = condition_; |
| 19434 | // @@protoc_insertion_point(field_get:xla.WhileRequest.condition) |
| 19435 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 19436 | &::xla::_ComputationHandle_default_instance_); |
| 19437 | } |
| 19438 | inline ::xla::ComputationHandle* WhileRequest::release_condition() { |
| 19439 | // @@protoc_insertion_point(field_release:xla.WhileRequest.condition) |
| 19440 | |
| 19441 | ::xla::ComputationHandle* temp = condition_; |
| 19442 | if (GetArenaNoVirtual() != NULL) { |
| 19443 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19444 | } |
| 19445 | condition_ = NULL; |
| 19446 | return temp; |
| 19447 | } |
| 19448 | inline ::xla::ComputationHandle* WhileRequest::unsafe_arena_release_condition() { |
| 19449 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.WhileRequest.condition) |
| 19450 | |
| 19451 | ::xla::ComputationHandle* temp = condition_; |
| 19452 | condition_ = NULL; |
| 19453 | return temp; |
| 19454 | } |
| 19455 | inline ::xla::ComputationHandle* WhileRequest::mutable_condition() { |
| 19456 | |
| 19457 | if (condition_ == NULL) { |
| 19458 | condition_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 19459 | GetArenaNoVirtual()); |
| 19460 | } |
| 19461 | // @@protoc_insertion_point(field_mutable:xla.WhileRequest.condition) |
| 19462 | return condition_; |
| 19463 | } |
| 19464 | inline void WhileRequest::set_allocated_condition(::xla::ComputationHandle* condition) { |
| 19465 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19466 | if (message_arena == NULL) { |
| 19467 | delete condition_; |
| 19468 | } |
| 19469 | if (condition) { |
| 19470 | ::google::protobuf::Arena* submessage_arena = |
| 19471 | ::google::protobuf::Arena::GetArena(condition); |
| 19472 | if (message_arena != submessage_arena) { |
| 19473 | condition = ::google::protobuf::internal::GetOwnedMessage( |
| 19474 | message_arena, condition, submessage_arena); |
| 19475 | } |
| 19476 | |
| 19477 | } else { |
| 19478 | |
| 19479 | } |
| 19480 | condition_ = condition; |
| 19481 | // @@protoc_insertion_point(field_set_allocated:xla.WhileRequest.condition) |
| 19482 | } |
| 19483 | |
| 19484 | // .xla.ComputationHandle body = 3; |
| 19485 | inline bool WhileRequest::has_body() const { |
| 19486 | return this != internal_default_instance() && body_ != NULL; |
| 19487 | } |
| 19488 | inline void WhileRequest::clear_body() { |
| 19489 | if (GetArenaNoVirtual() == NULL && body_ != NULL) { |
| 19490 | delete body_; |
| 19491 | } |
| 19492 | body_ = NULL; |
| 19493 | } |
| 19494 | inline const ::xla::ComputationHandle& WhileRequest::body() const { |
| 19495 | const ::xla::ComputationHandle* p = body_; |
| 19496 | // @@protoc_insertion_point(field_get:xla.WhileRequest.body) |
| 19497 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 19498 | &::xla::_ComputationHandle_default_instance_); |
| 19499 | } |
| 19500 | inline ::xla::ComputationHandle* WhileRequest::release_body() { |
| 19501 | // @@protoc_insertion_point(field_release:xla.WhileRequest.body) |
| 19502 | |
| 19503 | ::xla::ComputationHandle* temp = body_; |
| 19504 | if (GetArenaNoVirtual() != NULL) { |
| 19505 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19506 | } |
| 19507 | body_ = NULL; |
| 19508 | return temp; |
| 19509 | } |
| 19510 | inline ::xla::ComputationHandle* WhileRequest::unsafe_arena_release_body() { |
| 19511 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.WhileRequest.body) |
| 19512 | |
| 19513 | ::xla::ComputationHandle* temp = body_; |
| 19514 | body_ = NULL; |
| 19515 | return temp; |
| 19516 | } |
| 19517 | inline ::xla::ComputationHandle* WhileRequest::mutable_body() { |
| 19518 | |
| 19519 | if (body_ == NULL) { |
| 19520 | body_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 19521 | GetArenaNoVirtual()); |
| 19522 | } |
| 19523 | // @@protoc_insertion_point(field_mutable:xla.WhileRequest.body) |
| 19524 | return body_; |
| 19525 | } |
| 19526 | inline void WhileRequest::set_allocated_body(::xla::ComputationHandle* body) { |
| 19527 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19528 | if (message_arena == NULL) { |
| 19529 | delete body_; |
| 19530 | } |
| 19531 | if (body) { |
| 19532 | ::google::protobuf::Arena* submessage_arena = |
| 19533 | ::google::protobuf::Arena::GetArena(body); |
| 19534 | if (message_arena != submessage_arena) { |
| 19535 | body = ::google::protobuf::internal::GetOwnedMessage( |
| 19536 | message_arena, body, submessage_arena); |
| 19537 | } |
| 19538 | |
| 19539 | } else { |
| 19540 | |
| 19541 | } |
| 19542 | body_ = body; |
| 19543 | // @@protoc_insertion_point(field_set_allocated:xla.WhileRequest.body) |
| 19544 | } |
| 19545 | |
| 19546 | // .xla.ComputationDataHandle init = 4; |
| 19547 | inline bool WhileRequest::has_init() const { |
| 19548 | return this != internal_default_instance() && init_ != NULL; |
| 19549 | } |
| 19550 | inline void WhileRequest::clear_init() { |
| 19551 | if (GetArenaNoVirtual() == NULL && init_ != NULL) { |
| 19552 | delete init_; |
| 19553 | } |
| 19554 | init_ = NULL; |
| 19555 | } |
| 19556 | inline const ::xla::ComputationDataHandle& WhileRequest::init() const { |
| 19557 | const ::xla::ComputationDataHandle* p = init_; |
| 19558 | // @@protoc_insertion_point(field_get:xla.WhileRequest.init) |
| 19559 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19560 | &::xla::_ComputationDataHandle_default_instance_); |
| 19561 | } |
| 19562 | inline ::xla::ComputationDataHandle* WhileRequest::release_init() { |
| 19563 | // @@protoc_insertion_point(field_release:xla.WhileRequest.init) |
| 19564 | |
| 19565 | ::xla::ComputationDataHandle* temp = init_; |
| 19566 | if (GetArenaNoVirtual() != NULL) { |
| 19567 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19568 | } |
| 19569 | init_ = NULL; |
| 19570 | return temp; |
| 19571 | } |
| 19572 | inline ::xla::ComputationDataHandle* WhileRequest::unsafe_arena_release_init() { |
| 19573 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.WhileRequest.init) |
| 19574 | |
| 19575 | ::xla::ComputationDataHandle* temp = init_; |
| 19576 | init_ = NULL; |
| 19577 | return temp; |
| 19578 | } |
| 19579 | inline ::xla::ComputationDataHandle* WhileRequest::mutable_init() { |
| 19580 | |
| 19581 | if (init_ == NULL) { |
| 19582 | init_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19583 | GetArenaNoVirtual()); |
| 19584 | } |
| 19585 | // @@protoc_insertion_point(field_mutable:xla.WhileRequest.init) |
| 19586 | return init_; |
| 19587 | } |
| 19588 | inline void WhileRequest::set_allocated_init(::xla::ComputationDataHandle* init) { |
| 19589 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19590 | if (message_arena == NULL) { |
| 19591 | delete init_; |
| 19592 | } |
| 19593 | if (init) { |
| 19594 | ::google::protobuf::Arena* submessage_arena = |
| 19595 | ::google::protobuf::Arena::GetArena(init); |
| 19596 | if (message_arena != submessage_arena) { |
| 19597 | init = ::google::protobuf::internal::GetOwnedMessage( |
| 19598 | message_arena, init, submessage_arena); |
| 19599 | } |
| 19600 | |
| 19601 | } else { |
| 19602 | |
| 19603 | } |
| 19604 | init_ = init; |
| 19605 | // @@protoc_insertion_point(field_set_allocated:xla.WhileRequest.init) |
| 19606 | } |
| 19607 | |
| 19608 | // ------------------------------------------------------------------- |
| 19609 | |
| 19610 | // UnaryOpRequest |
| 19611 | |
| 19612 | // .xla.UnaryOperation unop = 2; |
| 19613 | inline void UnaryOpRequest::clear_unop() { |
| 19614 | unop_ = 0; |
| 19615 | } |
| 19616 | inline ::xla::UnaryOperation UnaryOpRequest::unop() const { |
| 19617 | // @@protoc_insertion_point(field_get:xla.UnaryOpRequest.unop) |
| 19618 | return static_cast< ::xla::UnaryOperation >(unop_); |
| 19619 | } |
| 19620 | inline void UnaryOpRequest::set_unop(::xla::UnaryOperation value) { |
| 19621 | |
| 19622 | unop_ = value; |
| 19623 | // @@protoc_insertion_point(field_set:xla.UnaryOpRequest.unop) |
| 19624 | } |
| 19625 | |
| 19626 | // .xla.ComputationDataHandle operand = 3; |
| 19627 | inline bool UnaryOpRequest::has_operand() const { |
| 19628 | return this != internal_default_instance() && operand_ != NULL; |
| 19629 | } |
| 19630 | inline void UnaryOpRequest::clear_operand() { |
| 19631 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 19632 | delete operand_; |
| 19633 | } |
| 19634 | operand_ = NULL; |
| 19635 | } |
| 19636 | inline const ::xla::ComputationDataHandle& UnaryOpRequest::operand() const { |
| 19637 | const ::xla::ComputationDataHandle* p = operand_; |
| 19638 | // @@protoc_insertion_point(field_get:xla.UnaryOpRequest.operand) |
| 19639 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19640 | &::xla::_ComputationDataHandle_default_instance_); |
| 19641 | } |
| 19642 | inline ::xla::ComputationDataHandle* UnaryOpRequest::release_operand() { |
| 19643 | // @@protoc_insertion_point(field_release:xla.UnaryOpRequest.operand) |
| 19644 | |
| 19645 | ::xla::ComputationDataHandle* temp = operand_; |
| 19646 | if (GetArenaNoVirtual() != NULL) { |
| 19647 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19648 | } |
| 19649 | operand_ = NULL; |
| 19650 | return temp; |
| 19651 | } |
| 19652 | inline ::xla::ComputationDataHandle* UnaryOpRequest::unsafe_arena_release_operand() { |
| 19653 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.UnaryOpRequest.operand) |
| 19654 | |
| 19655 | ::xla::ComputationDataHandle* temp = operand_; |
| 19656 | operand_ = NULL; |
| 19657 | return temp; |
| 19658 | } |
| 19659 | inline ::xla::ComputationDataHandle* UnaryOpRequest::mutable_operand() { |
| 19660 | |
| 19661 | if (operand_ == NULL) { |
| 19662 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19663 | GetArenaNoVirtual()); |
| 19664 | } |
| 19665 | // @@protoc_insertion_point(field_mutable:xla.UnaryOpRequest.operand) |
| 19666 | return operand_; |
| 19667 | } |
| 19668 | inline void UnaryOpRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 19669 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19670 | if (message_arena == NULL) { |
| 19671 | delete operand_; |
| 19672 | } |
| 19673 | if (operand) { |
| 19674 | ::google::protobuf::Arena* submessage_arena = |
| 19675 | ::google::protobuf::Arena::GetArena(operand); |
| 19676 | if (message_arena != submessage_arena) { |
| 19677 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 19678 | message_arena, operand, submessage_arena); |
| 19679 | } |
| 19680 | |
| 19681 | } else { |
| 19682 | |
| 19683 | } |
| 19684 | operand_ = operand; |
| 19685 | // @@protoc_insertion_point(field_set_allocated:xla.UnaryOpRequest.operand) |
| 19686 | } |
| 19687 | |
| 19688 | // ------------------------------------------------------------------- |
| 19689 | |
| 19690 | // BinaryOpRequest |
| 19691 | |
| 19692 | // .xla.BinaryOperation binop = 2; |
| 19693 | inline void BinaryOpRequest::clear_binop() { |
| 19694 | binop_ = 0; |
| 19695 | } |
| 19696 | inline ::xla::BinaryOperation BinaryOpRequest::binop() const { |
| 19697 | // @@protoc_insertion_point(field_get:xla.BinaryOpRequest.binop) |
| 19698 | return static_cast< ::xla::BinaryOperation >(binop_); |
| 19699 | } |
| 19700 | inline void BinaryOpRequest::set_binop(::xla::BinaryOperation value) { |
| 19701 | |
| 19702 | binop_ = value; |
| 19703 | // @@protoc_insertion_point(field_set:xla.BinaryOpRequest.binop) |
| 19704 | } |
| 19705 | |
| 19706 | // .xla.ComputationDataHandle lhs = 3; |
| 19707 | inline bool BinaryOpRequest::has_lhs() const { |
| 19708 | return this != internal_default_instance() && lhs_ != NULL; |
| 19709 | } |
| 19710 | inline void BinaryOpRequest::clear_lhs() { |
| 19711 | if (GetArenaNoVirtual() == NULL && lhs_ != NULL) { |
| 19712 | delete lhs_; |
| 19713 | } |
| 19714 | lhs_ = NULL; |
| 19715 | } |
| 19716 | inline const ::xla::ComputationDataHandle& BinaryOpRequest::lhs() const { |
| 19717 | const ::xla::ComputationDataHandle* p = lhs_; |
| 19718 | // @@protoc_insertion_point(field_get:xla.BinaryOpRequest.lhs) |
| 19719 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19720 | &::xla::_ComputationDataHandle_default_instance_); |
| 19721 | } |
| 19722 | inline ::xla::ComputationDataHandle* BinaryOpRequest::release_lhs() { |
| 19723 | // @@protoc_insertion_point(field_release:xla.BinaryOpRequest.lhs) |
| 19724 | |
| 19725 | ::xla::ComputationDataHandle* temp = lhs_; |
| 19726 | if (GetArenaNoVirtual() != NULL) { |
| 19727 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19728 | } |
| 19729 | lhs_ = NULL; |
| 19730 | return temp; |
| 19731 | } |
| 19732 | inline ::xla::ComputationDataHandle* BinaryOpRequest::unsafe_arena_release_lhs() { |
| 19733 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BinaryOpRequest.lhs) |
| 19734 | |
| 19735 | ::xla::ComputationDataHandle* temp = lhs_; |
| 19736 | lhs_ = NULL; |
| 19737 | return temp; |
| 19738 | } |
| 19739 | inline ::xla::ComputationDataHandle* BinaryOpRequest::mutable_lhs() { |
| 19740 | |
| 19741 | if (lhs_ == NULL) { |
| 19742 | lhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19743 | GetArenaNoVirtual()); |
| 19744 | } |
| 19745 | // @@protoc_insertion_point(field_mutable:xla.BinaryOpRequest.lhs) |
| 19746 | return lhs_; |
| 19747 | } |
| 19748 | inline void BinaryOpRequest::set_allocated_lhs(::xla::ComputationDataHandle* lhs) { |
| 19749 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19750 | if (message_arena == NULL) { |
| 19751 | delete lhs_; |
| 19752 | } |
| 19753 | if (lhs) { |
| 19754 | ::google::protobuf::Arena* submessage_arena = |
| 19755 | ::google::protobuf::Arena::GetArena(lhs); |
| 19756 | if (message_arena != submessage_arena) { |
| 19757 | lhs = ::google::protobuf::internal::GetOwnedMessage( |
| 19758 | message_arena, lhs, submessage_arena); |
| 19759 | } |
| 19760 | |
| 19761 | } else { |
| 19762 | |
| 19763 | } |
| 19764 | lhs_ = lhs; |
| 19765 | // @@protoc_insertion_point(field_set_allocated:xla.BinaryOpRequest.lhs) |
| 19766 | } |
| 19767 | |
| 19768 | // .xla.ComputationDataHandle rhs = 4; |
| 19769 | inline bool BinaryOpRequest::has_rhs() const { |
| 19770 | return this != internal_default_instance() && rhs_ != NULL; |
| 19771 | } |
| 19772 | inline void BinaryOpRequest::clear_rhs() { |
| 19773 | if (GetArenaNoVirtual() == NULL && rhs_ != NULL) { |
| 19774 | delete rhs_; |
| 19775 | } |
| 19776 | rhs_ = NULL; |
| 19777 | } |
| 19778 | inline const ::xla::ComputationDataHandle& BinaryOpRequest::rhs() const { |
| 19779 | const ::xla::ComputationDataHandle* p = rhs_; |
| 19780 | // @@protoc_insertion_point(field_get:xla.BinaryOpRequest.rhs) |
| 19781 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 19782 | &::xla::_ComputationDataHandle_default_instance_); |
| 19783 | } |
| 19784 | inline ::xla::ComputationDataHandle* BinaryOpRequest::release_rhs() { |
| 19785 | // @@protoc_insertion_point(field_release:xla.BinaryOpRequest.rhs) |
| 19786 | |
| 19787 | ::xla::ComputationDataHandle* temp = rhs_; |
| 19788 | if (GetArenaNoVirtual() != NULL) { |
| 19789 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19790 | } |
| 19791 | rhs_ = NULL; |
| 19792 | return temp; |
| 19793 | } |
| 19794 | inline ::xla::ComputationDataHandle* BinaryOpRequest::unsafe_arena_release_rhs() { |
| 19795 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.BinaryOpRequest.rhs) |
| 19796 | |
| 19797 | ::xla::ComputationDataHandle* temp = rhs_; |
| 19798 | rhs_ = NULL; |
| 19799 | return temp; |
| 19800 | } |
| 19801 | inline ::xla::ComputationDataHandle* BinaryOpRequest::mutable_rhs() { |
| 19802 | |
| 19803 | if (rhs_ == NULL) { |
| 19804 | rhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 19805 | GetArenaNoVirtual()); |
| 19806 | } |
| 19807 | // @@protoc_insertion_point(field_mutable:xla.BinaryOpRequest.rhs) |
| 19808 | return rhs_; |
| 19809 | } |
| 19810 | inline void BinaryOpRequest::set_allocated_rhs(::xla::ComputationDataHandle* rhs) { |
| 19811 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19812 | if (message_arena == NULL) { |
| 19813 | delete rhs_; |
| 19814 | } |
| 19815 | if (rhs) { |
| 19816 | ::google::protobuf::Arena* submessage_arena = |
| 19817 | ::google::protobuf::Arena::GetArena(rhs); |
| 19818 | if (message_arena != submessage_arena) { |
| 19819 | rhs = ::google::protobuf::internal::GetOwnedMessage( |
| 19820 | message_arena, rhs, submessage_arena); |
| 19821 | } |
| 19822 | |
| 19823 | } else { |
| 19824 | |
| 19825 | } |
| 19826 | rhs_ = rhs; |
| 19827 | // @@protoc_insertion_point(field_set_allocated:xla.BinaryOpRequest.rhs) |
| 19828 | } |
| 19829 | |
| 19830 | // repeated int64 broadcast_dimensions = 5; |
| 19831 | inline int BinaryOpRequest::broadcast_dimensions_size() const { |
| 19832 | return broadcast_dimensions_.size(); |
| 19833 | } |
| 19834 | inline void BinaryOpRequest::clear_broadcast_dimensions() { |
| 19835 | broadcast_dimensions_.Clear(); |
| 19836 | } |
| 19837 | inline ::google::protobuf::int64 BinaryOpRequest::broadcast_dimensions(int index) const { |
| 19838 | // @@protoc_insertion_point(field_get:xla.BinaryOpRequest.broadcast_dimensions) |
| 19839 | return broadcast_dimensions_.Get(index); |
| 19840 | } |
| 19841 | inline void BinaryOpRequest::set_broadcast_dimensions(int index, ::google::protobuf::int64 value) { |
| 19842 | broadcast_dimensions_.Set(index, value); |
| 19843 | // @@protoc_insertion_point(field_set:xla.BinaryOpRequest.broadcast_dimensions) |
| 19844 | } |
| 19845 | inline void BinaryOpRequest::add_broadcast_dimensions(::google::protobuf::int64 value) { |
| 19846 | broadcast_dimensions_.Add(value); |
| 19847 | // @@protoc_insertion_point(field_add:xla.BinaryOpRequest.broadcast_dimensions) |
| 19848 | } |
| 19849 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 19850 | BinaryOpRequest::broadcast_dimensions() const { |
| 19851 | // @@protoc_insertion_point(field_list:xla.BinaryOpRequest.broadcast_dimensions) |
| 19852 | return broadcast_dimensions_; |
| 19853 | } |
| 19854 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 19855 | BinaryOpRequest::mutable_broadcast_dimensions() { |
| 19856 | // @@protoc_insertion_point(field_mutable_list:xla.BinaryOpRequest.broadcast_dimensions) |
| 19857 | return &broadcast_dimensions_; |
| 19858 | } |
| 19859 | |
| 19860 | // ------------------------------------------------------------------- |
| 19861 | |
| 19862 | // RngRequest |
| 19863 | |
| 19864 | // .xla.RandomDistribution distribution = 2; |
| 19865 | inline void RngRequest::clear_distribution() { |
| 19866 | distribution_ = 0; |
| 19867 | } |
| 19868 | inline ::xla::RandomDistribution RngRequest::distribution() const { |
| 19869 | // @@protoc_insertion_point(field_get:xla.RngRequest.distribution) |
| 19870 | return static_cast< ::xla::RandomDistribution >(distribution_); |
| 19871 | } |
| 19872 | inline void RngRequest::set_distribution(::xla::RandomDistribution value) { |
| 19873 | |
| 19874 | distribution_ = value; |
| 19875 | // @@protoc_insertion_point(field_set:xla.RngRequest.distribution) |
| 19876 | } |
| 19877 | |
| 19878 | // repeated .xla.ComputationDataHandle parameter = 3; |
| 19879 | inline int RngRequest::parameter_size() const { |
| 19880 | return parameter_.size(); |
| 19881 | } |
| 19882 | inline void RngRequest::clear_parameter() { |
| 19883 | parameter_.Clear(); |
| 19884 | } |
| 19885 | inline ::xla::ComputationDataHandle* RngRequest::mutable_parameter(int index) { |
| 19886 | // @@protoc_insertion_point(field_mutable:xla.RngRequest.parameter) |
| 19887 | return parameter_.Mutable(index); |
| 19888 | } |
| 19889 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 19890 | RngRequest::mutable_parameter() { |
| 19891 | // @@protoc_insertion_point(field_mutable_list:xla.RngRequest.parameter) |
| 19892 | return ¶meter_; |
| 19893 | } |
| 19894 | inline const ::xla::ComputationDataHandle& RngRequest::parameter(int index) const { |
| 19895 | // @@protoc_insertion_point(field_get:xla.RngRequest.parameter) |
| 19896 | return parameter_.Get(index); |
| 19897 | } |
| 19898 | inline ::xla::ComputationDataHandle* RngRequest::add_parameter() { |
| 19899 | // @@protoc_insertion_point(field_add:xla.RngRequest.parameter) |
| 19900 | return parameter_.Add(); |
| 19901 | } |
| 19902 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 19903 | RngRequest::parameter() const { |
| 19904 | // @@protoc_insertion_point(field_list:xla.RngRequest.parameter) |
| 19905 | return parameter_; |
| 19906 | } |
| 19907 | |
| 19908 | // .xla.Shape shape = 4; |
| 19909 | inline bool RngRequest::has_shape() const { |
| 19910 | return this != internal_default_instance() && shape_ != NULL; |
| 19911 | } |
| 19912 | inline void RngRequest::clear_shape() { |
| 19913 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 19914 | delete shape_; |
| 19915 | } |
| 19916 | shape_ = NULL; |
| 19917 | } |
| 19918 | inline const ::xla::Shape& RngRequest::shape() const { |
| 19919 | const ::xla::Shape* p = shape_; |
| 19920 | // @@protoc_insertion_point(field_get:xla.RngRequest.shape) |
| 19921 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 19922 | &::xla::_Shape_default_instance_); |
| 19923 | } |
| 19924 | inline ::xla::Shape* RngRequest::release_shape() { |
| 19925 | // @@protoc_insertion_point(field_release:xla.RngRequest.shape) |
| 19926 | |
| 19927 | ::xla::Shape* temp = shape_; |
| 19928 | if (GetArenaNoVirtual() != NULL) { |
| 19929 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 19930 | } |
| 19931 | shape_ = NULL; |
| 19932 | return temp; |
| 19933 | } |
| 19934 | inline ::xla::Shape* RngRequest::unsafe_arena_release_shape() { |
| 19935 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.RngRequest.shape) |
| 19936 | |
| 19937 | ::xla::Shape* temp = shape_; |
| 19938 | shape_ = NULL; |
| 19939 | return temp; |
| 19940 | } |
| 19941 | inline ::xla::Shape* RngRequest::mutable_shape() { |
| 19942 | |
| 19943 | if (shape_ == NULL) { |
| 19944 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 19945 | GetArenaNoVirtual()); |
| 19946 | } |
| 19947 | // @@protoc_insertion_point(field_mutable:xla.RngRequest.shape) |
| 19948 | return shape_; |
| 19949 | } |
| 19950 | inline void RngRequest::set_allocated_shape(::xla::Shape* shape) { |
| 19951 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 19952 | if (message_arena == NULL) { |
| 19953 | delete shape_; |
| 19954 | } |
| 19955 | if (shape) { |
| 19956 | ::google::protobuf::Arena* submessage_arena = |
| 19957 | ::google::protobuf::Arena::GetArena(shape); |
| 19958 | if (message_arena != submessage_arena) { |
| 19959 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 19960 | message_arena, shape, submessage_arena); |
| 19961 | } |
| 19962 | |
| 19963 | } else { |
| 19964 | |
| 19965 | } |
| 19966 | shape_ = shape; |
| 19967 | // @@protoc_insertion_point(field_set_allocated:xla.RngRequest.shape) |
| 19968 | } |
| 19969 | |
| 19970 | // ------------------------------------------------------------------- |
| 19971 | |
| 19972 | // TernaryOpRequest |
| 19973 | |
| 19974 | // .xla.TernaryOperation triop = 2; |
| 19975 | inline void TernaryOpRequest::clear_triop() { |
| 19976 | triop_ = 0; |
| 19977 | } |
| 19978 | inline ::xla::TernaryOperation TernaryOpRequest::triop() const { |
| 19979 | // @@protoc_insertion_point(field_get:xla.TernaryOpRequest.triop) |
| 19980 | return static_cast< ::xla::TernaryOperation >(triop_); |
| 19981 | } |
| 19982 | inline void TernaryOpRequest::set_triop(::xla::TernaryOperation value) { |
| 19983 | |
| 19984 | triop_ = value; |
| 19985 | // @@protoc_insertion_point(field_set:xla.TernaryOpRequest.triop) |
| 19986 | } |
| 19987 | |
| 19988 | // .xla.ComputationDataHandle lhs = 3; |
| 19989 | inline bool TernaryOpRequest::has_lhs() const { |
| 19990 | return this != internal_default_instance() && lhs_ != NULL; |
| 19991 | } |
| 19992 | inline void TernaryOpRequest::clear_lhs() { |
| 19993 | if (GetArenaNoVirtual() == NULL && lhs_ != NULL) { |
| 19994 | delete lhs_; |
| 19995 | } |
| 19996 | lhs_ = NULL; |
| 19997 | } |
| 19998 | inline const ::xla::ComputationDataHandle& TernaryOpRequest::lhs() const { |
| 19999 | const ::xla::ComputationDataHandle* p = lhs_; |
| 20000 | // @@protoc_insertion_point(field_get:xla.TernaryOpRequest.lhs) |
| 20001 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20002 | &::xla::_ComputationDataHandle_default_instance_); |
| 20003 | } |
| 20004 | inline ::xla::ComputationDataHandle* TernaryOpRequest::release_lhs() { |
| 20005 | // @@protoc_insertion_point(field_release:xla.TernaryOpRequest.lhs) |
| 20006 | |
| 20007 | ::xla::ComputationDataHandle* temp = lhs_; |
| 20008 | if (GetArenaNoVirtual() != NULL) { |
| 20009 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20010 | } |
| 20011 | lhs_ = NULL; |
| 20012 | return temp; |
| 20013 | } |
| 20014 | inline ::xla::ComputationDataHandle* TernaryOpRequest::unsafe_arena_release_lhs() { |
| 20015 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.TernaryOpRequest.lhs) |
| 20016 | |
| 20017 | ::xla::ComputationDataHandle* temp = lhs_; |
| 20018 | lhs_ = NULL; |
| 20019 | return temp; |
| 20020 | } |
| 20021 | inline ::xla::ComputationDataHandle* TernaryOpRequest::mutable_lhs() { |
| 20022 | |
| 20023 | if (lhs_ == NULL) { |
| 20024 | lhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20025 | GetArenaNoVirtual()); |
| 20026 | } |
| 20027 | // @@protoc_insertion_point(field_mutable:xla.TernaryOpRequest.lhs) |
| 20028 | return lhs_; |
| 20029 | } |
| 20030 | inline void TernaryOpRequest::set_allocated_lhs(::xla::ComputationDataHandle* lhs) { |
| 20031 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20032 | if (message_arena == NULL) { |
| 20033 | delete lhs_; |
| 20034 | } |
| 20035 | if (lhs) { |
| 20036 | ::google::protobuf::Arena* submessage_arena = |
| 20037 | ::google::protobuf::Arena::GetArena(lhs); |
| 20038 | if (message_arena != submessage_arena) { |
| 20039 | lhs = ::google::protobuf::internal::GetOwnedMessage( |
| 20040 | message_arena, lhs, submessage_arena); |
| 20041 | } |
| 20042 | |
| 20043 | } else { |
| 20044 | |
| 20045 | } |
| 20046 | lhs_ = lhs; |
| 20047 | // @@protoc_insertion_point(field_set_allocated:xla.TernaryOpRequest.lhs) |
| 20048 | } |
| 20049 | |
| 20050 | // .xla.ComputationDataHandle rhs = 4; |
| 20051 | inline bool TernaryOpRequest::has_rhs() const { |
| 20052 | return this != internal_default_instance() && rhs_ != NULL; |
| 20053 | } |
| 20054 | inline void TernaryOpRequest::clear_rhs() { |
| 20055 | if (GetArenaNoVirtual() == NULL && rhs_ != NULL) { |
| 20056 | delete rhs_; |
| 20057 | } |
| 20058 | rhs_ = NULL; |
| 20059 | } |
| 20060 | inline const ::xla::ComputationDataHandle& TernaryOpRequest::rhs() const { |
| 20061 | const ::xla::ComputationDataHandle* p = rhs_; |
| 20062 | // @@protoc_insertion_point(field_get:xla.TernaryOpRequest.rhs) |
| 20063 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20064 | &::xla::_ComputationDataHandle_default_instance_); |
| 20065 | } |
| 20066 | inline ::xla::ComputationDataHandle* TernaryOpRequest::release_rhs() { |
| 20067 | // @@protoc_insertion_point(field_release:xla.TernaryOpRequest.rhs) |
| 20068 | |
| 20069 | ::xla::ComputationDataHandle* temp = rhs_; |
| 20070 | if (GetArenaNoVirtual() != NULL) { |
| 20071 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20072 | } |
| 20073 | rhs_ = NULL; |
| 20074 | return temp; |
| 20075 | } |
| 20076 | inline ::xla::ComputationDataHandle* TernaryOpRequest::unsafe_arena_release_rhs() { |
| 20077 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.TernaryOpRequest.rhs) |
| 20078 | |
| 20079 | ::xla::ComputationDataHandle* temp = rhs_; |
| 20080 | rhs_ = NULL; |
| 20081 | return temp; |
| 20082 | } |
| 20083 | inline ::xla::ComputationDataHandle* TernaryOpRequest::mutable_rhs() { |
| 20084 | |
| 20085 | if (rhs_ == NULL) { |
| 20086 | rhs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20087 | GetArenaNoVirtual()); |
| 20088 | } |
| 20089 | // @@protoc_insertion_point(field_mutable:xla.TernaryOpRequest.rhs) |
| 20090 | return rhs_; |
| 20091 | } |
| 20092 | inline void TernaryOpRequest::set_allocated_rhs(::xla::ComputationDataHandle* rhs) { |
| 20093 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20094 | if (message_arena == NULL) { |
| 20095 | delete rhs_; |
| 20096 | } |
| 20097 | if (rhs) { |
| 20098 | ::google::protobuf::Arena* submessage_arena = |
| 20099 | ::google::protobuf::Arena::GetArena(rhs); |
| 20100 | if (message_arena != submessage_arena) { |
| 20101 | rhs = ::google::protobuf::internal::GetOwnedMessage( |
| 20102 | message_arena, rhs, submessage_arena); |
| 20103 | } |
| 20104 | |
| 20105 | } else { |
| 20106 | |
| 20107 | } |
| 20108 | rhs_ = rhs; |
| 20109 | // @@protoc_insertion_point(field_set_allocated:xla.TernaryOpRequest.rhs) |
| 20110 | } |
| 20111 | |
| 20112 | // .xla.ComputationDataHandle ehs = 5; |
| 20113 | inline bool TernaryOpRequest::has_ehs() const { |
| 20114 | return this != internal_default_instance() && ehs_ != NULL; |
| 20115 | } |
| 20116 | inline void TernaryOpRequest::clear_ehs() { |
| 20117 | if (GetArenaNoVirtual() == NULL && ehs_ != NULL) { |
| 20118 | delete ehs_; |
| 20119 | } |
| 20120 | ehs_ = NULL; |
| 20121 | } |
| 20122 | inline const ::xla::ComputationDataHandle& TernaryOpRequest::ehs() const { |
| 20123 | const ::xla::ComputationDataHandle* p = ehs_; |
| 20124 | // @@protoc_insertion_point(field_get:xla.TernaryOpRequest.ehs) |
| 20125 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20126 | &::xla::_ComputationDataHandle_default_instance_); |
| 20127 | } |
| 20128 | inline ::xla::ComputationDataHandle* TernaryOpRequest::release_ehs() { |
| 20129 | // @@protoc_insertion_point(field_release:xla.TernaryOpRequest.ehs) |
| 20130 | |
| 20131 | ::xla::ComputationDataHandle* temp = ehs_; |
| 20132 | if (GetArenaNoVirtual() != NULL) { |
| 20133 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20134 | } |
| 20135 | ehs_ = NULL; |
| 20136 | return temp; |
| 20137 | } |
| 20138 | inline ::xla::ComputationDataHandle* TernaryOpRequest::unsafe_arena_release_ehs() { |
| 20139 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.TernaryOpRequest.ehs) |
| 20140 | |
| 20141 | ::xla::ComputationDataHandle* temp = ehs_; |
| 20142 | ehs_ = NULL; |
| 20143 | return temp; |
| 20144 | } |
| 20145 | inline ::xla::ComputationDataHandle* TernaryOpRequest::mutable_ehs() { |
| 20146 | |
| 20147 | if (ehs_ == NULL) { |
| 20148 | ehs_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20149 | GetArenaNoVirtual()); |
| 20150 | } |
| 20151 | // @@protoc_insertion_point(field_mutable:xla.TernaryOpRequest.ehs) |
| 20152 | return ehs_; |
| 20153 | } |
| 20154 | inline void TernaryOpRequest::set_allocated_ehs(::xla::ComputationDataHandle* ehs) { |
| 20155 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20156 | if (message_arena == NULL) { |
| 20157 | delete ehs_; |
| 20158 | } |
| 20159 | if (ehs) { |
| 20160 | ::google::protobuf::Arena* submessage_arena = |
| 20161 | ::google::protobuf::Arena::GetArena(ehs); |
| 20162 | if (message_arena != submessage_arena) { |
| 20163 | ehs = ::google::protobuf::internal::GetOwnedMessage( |
| 20164 | message_arena, ehs, submessage_arena); |
| 20165 | } |
| 20166 | |
| 20167 | } else { |
| 20168 | |
| 20169 | } |
| 20170 | ehs_ = ehs; |
| 20171 | // @@protoc_insertion_point(field_set_allocated:xla.TernaryOpRequest.ehs) |
| 20172 | } |
| 20173 | |
| 20174 | // ------------------------------------------------------------------- |
| 20175 | |
| 20176 | // VariadicOpRequest |
| 20177 | |
| 20178 | // .xla.VariadicOperation varop = 2; |
| 20179 | inline void VariadicOpRequest::clear_varop() { |
| 20180 | varop_ = 0; |
| 20181 | } |
| 20182 | inline ::xla::VariadicOperation VariadicOpRequest::varop() const { |
| 20183 | // @@protoc_insertion_point(field_get:xla.VariadicOpRequest.varop) |
| 20184 | return static_cast< ::xla::VariadicOperation >(varop_); |
| 20185 | } |
| 20186 | inline void VariadicOpRequest::set_varop(::xla::VariadicOperation value) { |
| 20187 | |
| 20188 | varop_ = value; |
| 20189 | // @@protoc_insertion_point(field_set:xla.VariadicOpRequest.varop) |
| 20190 | } |
| 20191 | |
| 20192 | // repeated .xla.ComputationDataHandle operands = 3; |
| 20193 | inline int VariadicOpRequest::operands_size() const { |
| 20194 | return operands_.size(); |
| 20195 | } |
| 20196 | inline void VariadicOpRequest::clear_operands() { |
| 20197 | operands_.Clear(); |
| 20198 | } |
| 20199 | inline ::xla::ComputationDataHandle* VariadicOpRequest::mutable_operands(int index) { |
| 20200 | // @@protoc_insertion_point(field_mutable:xla.VariadicOpRequest.operands) |
| 20201 | return operands_.Mutable(index); |
| 20202 | } |
| 20203 | inline ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >* |
| 20204 | VariadicOpRequest::mutable_operands() { |
| 20205 | // @@protoc_insertion_point(field_mutable_list:xla.VariadicOpRequest.operands) |
| 20206 | return &operands_; |
| 20207 | } |
| 20208 | inline const ::xla::ComputationDataHandle& VariadicOpRequest::operands(int index) const { |
| 20209 | // @@protoc_insertion_point(field_get:xla.VariadicOpRequest.operands) |
| 20210 | return operands_.Get(index); |
| 20211 | } |
| 20212 | inline ::xla::ComputationDataHandle* VariadicOpRequest::add_operands() { |
| 20213 | // @@protoc_insertion_point(field_add:xla.VariadicOpRequest.operands) |
| 20214 | return operands_.Add(); |
| 20215 | } |
| 20216 | inline const ::google::protobuf::RepeatedPtrField< ::xla::ComputationDataHandle >& |
| 20217 | VariadicOpRequest::operands() const { |
| 20218 | // @@protoc_insertion_point(field_list:xla.VariadicOpRequest.operands) |
| 20219 | return operands_; |
| 20220 | } |
| 20221 | |
| 20222 | // ------------------------------------------------------------------- |
| 20223 | |
| 20224 | // ReducePrecisionRequest |
| 20225 | |
| 20226 | // .xla.ComputationDataHandle operand = 1; |
| 20227 | inline bool ReducePrecisionRequest::has_operand() const { |
| 20228 | return this != internal_default_instance() && operand_ != NULL; |
| 20229 | } |
| 20230 | inline void ReducePrecisionRequest::clear_operand() { |
| 20231 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 20232 | delete operand_; |
| 20233 | } |
| 20234 | operand_ = NULL; |
| 20235 | } |
| 20236 | inline const ::xla::ComputationDataHandle& ReducePrecisionRequest::operand() const { |
| 20237 | const ::xla::ComputationDataHandle* p = operand_; |
| 20238 | // @@protoc_insertion_point(field_get:xla.ReducePrecisionRequest.operand) |
| 20239 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20240 | &::xla::_ComputationDataHandle_default_instance_); |
| 20241 | } |
| 20242 | inline ::xla::ComputationDataHandle* ReducePrecisionRequest::release_operand() { |
| 20243 | // @@protoc_insertion_point(field_release:xla.ReducePrecisionRequest.operand) |
| 20244 | |
| 20245 | ::xla::ComputationDataHandle* temp = operand_; |
| 20246 | if (GetArenaNoVirtual() != NULL) { |
| 20247 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20248 | } |
| 20249 | operand_ = NULL; |
| 20250 | return temp; |
| 20251 | } |
| 20252 | inline ::xla::ComputationDataHandle* ReducePrecisionRequest::unsafe_arena_release_operand() { |
| 20253 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.ReducePrecisionRequest.operand) |
| 20254 | |
| 20255 | ::xla::ComputationDataHandle* temp = operand_; |
| 20256 | operand_ = NULL; |
| 20257 | return temp; |
| 20258 | } |
| 20259 | inline ::xla::ComputationDataHandle* ReducePrecisionRequest::mutable_operand() { |
| 20260 | |
| 20261 | if (operand_ == NULL) { |
| 20262 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20263 | GetArenaNoVirtual()); |
| 20264 | } |
| 20265 | // @@protoc_insertion_point(field_mutable:xla.ReducePrecisionRequest.operand) |
| 20266 | return operand_; |
| 20267 | } |
| 20268 | inline void ReducePrecisionRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 20269 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20270 | if (message_arena == NULL) { |
| 20271 | delete operand_; |
| 20272 | } |
| 20273 | if (operand) { |
| 20274 | ::google::protobuf::Arena* submessage_arena = |
| 20275 | ::google::protobuf::Arena::GetArena(operand); |
| 20276 | if (message_arena != submessage_arena) { |
| 20277 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 20278 | message_arena, operand, submessage_arena); |
| 20279 | } |
| 20280 | |
| 20281 | } else { |
| 20282 | |
| 20283 | } |
| 20284 | operand_ = operand; |
| 20285 | // @@protoc_insertion_point(field_set_allocated:xla.ReducePrecisionRequest.operand) |
| 20286 | } |
| 20287 | |
| 20288 | // int32 exponent_bits = 2; |
| 20289 | inline void ReducePrecisionRequest::clear_exponent_bits() { |
| 20290 | exponent_bits_ = 0; |
| 20291 | } |
| 20292 | inline ::google::protobuf::int32 ReducePrecisionRequest::exponent_bits() const { |
| 20293 | // @@protoc_insertion_point(field_get:xla.ReducePrecisionRequest.exponent_bits) |
| 20294 | return exponent_bits_; |
| 20295 | } |
| 20296 | inline void ReducePrecisionRequest::set_exponent_bits(::google::protobuf::int32 value) { |
| 20297 | |
| 20298 | exponent_bits_ = value; |
| 20299 | // @@protoc_insertion_point(field_set:xla.ReducePrecisionRequest.exponent_bits) |
| 20300 | } |
| 20301 | |
| 20302 | // int32 mantissa_bits = 3; |
| 20303 | inline void ReducePrecisionRequest::clear_mantissa_bits() { |
| 20304 | mantissa_bits_ = 0; |
| 20305 | } |
| 20306 | inline ::google::protobuf::int32 ReducePrecisionRequest::mantissa_bits() const { |
| 20307 | // @@protoc_insertion_point(field_get:xla.ReducePrecisionRequest.mantissa_bits) |
| 20308 | return mantissa_bits_; |
| 20309 | } |
| 20310 | inline void ReducePrecisionRequest::set_mantissa_bits(::google::protobuf::int32 value) { |
| 20311 | |
| 20312 | mantissa_bits_ = value; |
| 20313 | // @@protoc_insertion_point(field_set:xla.ReducePrecisionRequest.mantissa_bits) |
| 20314 | } |
| 20315 | |
| 20316 | // ------------------------------------------------------------------- |
| 20317 | |
| 20318 | // SendRequest |
| 20319 | |
| 20320 | // .xla.ComputationDataHandle operand = 1; |
| 20321 | inline bool SendRequest::has_operand() const { |
| 20322 | return this != internal_default_instance() && operand_ != NULL; |
| 20323 | } |
| 20324 | inline void SendRequest::clear_operand() { |
| 20325 | if (GetArenaNoVirtual() == NULL && operand_ != NULL) { |
| 20326 | delete operand_; |
| 20327 | } |
| 20328 | operand_ = NULL; |
| 20329 | } |
| 20330 | inline const ::xla::ComputationDataHandle& SendRequest::operand() const { |
| 20331 | const ::xla::ComputationDataHandle* p = operand_; |
| 20332 | // @@protoc_insertion_point(field_get:xla.SendRequest.operand) |
| 20333 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20334 | &::xla::_ComputationDataHandle_default_instance_); |
| 20335 | } |
| 20336 | inline ::xla::ComputationDataHandle* SendRequest::release_operand() { |
| 20337 | // @@protoc_insertion_point(field_release:xla.SendRequest.operand) |
| 20338 | |
| 20339 | ::xla::ComputationDataHandle* temp = operand_; |
| 20340 | if (GetArenaNoVirtual() != NULL) { |
| 20341 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20342 | } |
| 20343 | operand_ = NULL; |
| 20344 | return temp; |
| 20345 | } |
| 20346 | inline ::xla::ComputationDataHandle* SendRequest::unsafe_arena_release_operand() { |
| 20347 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SendRequest.operand) |
| 20348 | |
| 20349 | ::xla::ComputationDataHandle* temp = operand_; |
| 20350 | operand_ = NULL; |
| 20351 | return temp; |
| 20352 | } |
| 20353 | inline ::xla::ComputationDataHandle* SendRequest::mutable_operand() { |
| 20354 | |
| 20355 | if (operand_ == NULL) { |
| 20356 | operand_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20357 | GetArenaNoVirtual()); |
| 20358 | } |
| 20359 | // @@protoc_insertion_point(field_mutable:xla.SendRequest.operand) |
| 20360 | return operand_; |
| 20361 | } |
| 20362 | inline void SendRequest::set_allocated_operand(::xla::ComputationDataHandle* operand) { |
| 20363 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20364 | if (message_arena == NULL) { |
| 20365 | delete operand_; |
| 20366 | } |
| 20367 | if (operand) { |
| 20368 | ::google::protobuf::Arena* submessage_arena = |
| 20369 | ::google::protobuf::Arena::GetArena(operand); |
| 20370 | if (message_arena != submessage_arena) { |
| 20371 | operand = ::google::protobuf::internal::GetOwnedMessage( |
| 20372 | message_arena, operand, submessage_arena); |
| 20373 | } |
| 20374 | |
| 20375 | } else { |
| 20376 | |
| 20377 | } |
| 20378 | operand_ = operand; |
| 20379 | // @@protoc_insertion_point(field_set_allocated:xla.SendRequest.operand) |
| 20380 | } |
| 20381 | |
| 20382 | // .xla.ChannelHandle channel_handle = 2; |
| 20383 | inline bool SendRequest::has_channel_handle() const { |
| 20384 | return this != internal_default_instance() && channel_handle_ != NULL; |
| 20385 | } |
| 20386 | inline void SendRequest::clear_channel_handle() { |
| 20387 | if (GetArenaNoVirtual() == NULL && channel_handle_ != NULL) { |
| 20388 | delete channel_handle_; |
| 20389 | } |
| 20390 | channel_handle_ = NULL; |
| 20391 | } |
| 20392 | inline const ::xla::ChannelHandle& SendRequest::channel_handle() const { |
| 20393 | const ::xla::ChannelHandle* p = channel_handle_; |
| 20394 | // @@protoc_insertion_point(field_get:xla.SendRequest.channel_handle) |
| 20395 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ChannelHandle*>( |
| 20396 | &::xla::_ChannelHandle_default_instance_); |
| 20397 | } |
| 20398 | inline ::xla::ChannelHandle* SendRequest::release_channel_handle() { |
| 20399 | // @@protoc_insertion_point(field_release:xla.SendRequest.channel_handle) |
| 20400 | |
| 20401 | ::xla::ChannelHandle* temp = channel_handle_; |
| 20402 | if (GetArenaNoVirtual() != NULL) { |
| 20403 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20404 | } |
| 20405 | channel_handle_ = NULL; |
| 20406 | return temp; |
| 20407 | } |
| 20408 | inline ::xla::ChannelHandle* SendRequest::unsafe_arena_release_channel_handle() { |
| 20409 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.SendRequest.channel_handle) |
| 20410 | |
| 20411 | ::xla::ChannelHandle* temp = channel_handle_; |
| 20412 | channel_handle_ = NULL; |
| 20413 | return temp; |
| 20414 | } |
| 20415 | inline ::xla::ChannelHandle* SendRequest::mutable_channel_handle() { |
| 20416 | |
| 20417 | if (channel_handle_ == NULL) { |
| 20418 | channel_handle_ = ::google::protobuf::Arena::CreateMessage< ::xla::ChannelHandle >( |
| 20419 | GetArenaNoVirtual()); |
| 20420 | } |
| 20421 | // @@protoc_insertion_point(field_mutable:xla.SendRequest.channel_handle) |
| 20422 | return channel_handle_; |
| 20423 | } |
| 20424 | inline void SendRequest::set_allocated_channel_handle(::xla::ChannelHandle* channel_handle) { |
| 20425 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20426 | if (message_arena == NULL) { |
| 20427 | delete channel_handle_; |
| 20428 | } |
| 20429 | if (channel_handle) { |
| 20430 | ::google::protobuf::Arena* submessage_arena = |
| 20431 | ::google::protobuf::Arena::GetArena(channel_handle); |
| 20432 | if (message_arena != submessage_arena) { |
| 20433 | channel_handle = ::google::protobuf::internal::GetOwnedMessage( |
| 20434 | message_arena, channel_handle, submessage_arena); |
| 20435 | } |
| 20436 | |
| 20437 | } else { |
| 20438 | |
| 20439 | } |
| 20440 | channel_handle_ = channel_handle; |
| 20441 | // @@protoc_insertion_point(field_set_allocated:xla.SendRequest.channel_handle) |
| 20442 | } |
| 20443 | |
| 20444 | // ------------------------------------------------------------------- |
| 20445 | |
| 20446 | // RecvRequest |
| 20447 | |
| 20448 | // .xla.Shape shape = 1; |
| 20449 | inline bool RecvRequest::has_shape() const { |
| 20450 | return this != internal_default_instance() && shape_ != NULL; |
| 20451 | } |
| 20452 | inline void RecvRequest::clear_shape() { |
| 20453 | if (GetArenaNoVirtual() == NULL && shape_ != NULL) { |
| 20454 | delete shape_; |
| 20455 | } |
| 20456 | shape_ = NULL; |
| 20457 | } |
| 20458 | inline const ::xla::Shape& RecvRequest::shape() const { |
| 20459 | const ::xla::Shape* p = shape_; |
| 20460 | // @@protoc_insertion_point(field_get:xla.RecvRequest.shape) |
| 20461 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 20462 | &::xla::_Shape_default_instance_); |
| 20463 | } |
| 20464 | inline ::xla::Shape* RecvRequest::release_shape() { |
| 20465 | // @@protoc_insertion_point(field_release:xla.RecvRequest.shape) |
| 20466 | |
| 20467 | ::xla::Shape* temp = shape_; |
| 20468 | if (GetArenaNoVirtual() != NULL) { |
| 20469 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20470 | } |
| 20471 | shape_ = NULL; |
| 20472 | return temp; |
| 20473 | } |
| 20474 | inline ::xla::Shape* RecvRequest::unsafe_arena_release_shape() { |
| 20475 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.RecvRequest.shape) |
| 20476 | |
| 20477 | ::xla::Shape* temp = shape_; |
| 20478 | shape_ = NULL; |
| 20479 | return temp; |
| 20480 | } |
| 20481 | inline ::xla::Shape* RecvRequest::mutable_shape() { |
| 20482 | |
| 20483 | if (shape_ == NULL) { |
| 20484 | shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 20485 | GetArenaNoVirtual()); |
| 20486 | } |
| 20487 | // @@protoc_insertion_point(field_mutable:xla.RecvRequest.shape) |
| 20488 | return shape_; |
| 20489 | } |
| 20490 | inline void RecvRequest::set_allocated_shape(::xla::Shape* shape) { |
| 20491 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20492 | if (message_arena == NULL) { |
| 20493 | delete shape_; |
| 20494 | } |
| 20495 | if (shape) { |
| 20496 | ::google::protobuf::Arena* submessage_arena = |
| 20497 | ::google::protobuf::Arena::GetArena(shape); |
| 20498 | if (message_arena != submessage_arena) { |
| 20499 | shape = ::google::protobuf::internal::GetOwnedMessage( |
| 20500 | message_arena, shape, submessage_arena); |
| 20501 | } |
| 20502 | |
| 20503 | } else { |
| 20504 | |
| 20505 | } |
| 20506 | shape_ = shape; |
| 20507 | // @@protoc_insertion_point(field_set_allocated:xla.RecvRequest.shape) |
| 20508 | } |
| 20509 | |
| 20510 | // .xla.ChannelHandle channel_handle = 2; |
| 20511 | inline bool RecvRequest::has_channel_handle() const { |
| 20512 | return this != internal_default_instance() && channel_handle_ != NULL; |
| 20513 | } |
| 20514 | inline void RecvRequest::clear_channel_handle() { |
| 20515 | if (GetArenaNoVirtual() == NULL && channel_handle_ != NULL) { |
| 20516 | delete channel_handle_; |
| 20517 | } |
| 20518 | channel_handle_ = NULL; |
| 20519 | } |
| 20520 | inline const ::xla::ChannelHandle& RecvRequest::channel_handle() const { |
| 20521 | const ::xla::ChannelHandle* p = channel_handle_; |
| 20522 | // @@protoc_insertion_point(field_get:xla.RecvRequest.channel_handle) |
| 20523 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ChannelHandle*>( |
| 20524 | &::xla::_ChannelHandle_default_instance_); |
| 20525 | } |
| 20526 | inline ::xla::ChannelHandle* RecvRequest::release_channel_handle() { |
| 20527 | // @@protoc_insertion_point(field_release:xla.RecvRequest.channel_handle) |
| 20528 | |
| 20529 | ::xla::ChannelHandle* temp = channel_handle_; |
| 20530 | if (GetArenaNoVirtual() != NULL) { |
| 20531 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20532 | } |
| 20533 | channel_handle_ = NULL; |
| 20534 | return temp; |
| 20535 | } |
| 20536 | inline ::xla::ChannelHandle* RecvRequest::unsafe_arena_release_channel_handle() { |
| 20537 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.RecvRequest.channel_handle) |
| 20538 | |
| 20539 | ::xla::ChannelHandle* temp = channel_handle_; |
| 20540 | channel_handle_ = NULL; |
| 20541 | return temp; |
| 20542 | } |
| 20543 | inline ::xla::ChannelHandle* RecvRequest::mutable_channel_handle() { |
| 20544 | |
| 20545 | if (channel_handle_ == NULL) { |
| 20546 | channel_handle_ = ::google::protobuf::Arena::CreateMessage< ::xla::ChannelHandle >( |
| 20547 | GetArenaNoVirtual()); |
| 20548 | } |
| 20549 | // @@protoc_insertion_point(field_mutable:xla.RecvRequest.channel_handle) |
| 20550 | return channel_handle_; |
| 20551 | } |
| 20552 | inline void RecvRequest::set_allocated_channel_handle(::xla::ChannelHandle* channel_handle) { |
| 20553 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20554 | if (message_arena == NULL) { |
| 20555 | delete channel_handle_; |
| 20556 | } |
| 20557 | if (channel_handle) { |
| 20558 | ::google::protobuf::Arena* submessage_arena = |
| 20559 | ::google::protobuf::Arena::GetArena(channel_handle); |
| 20560 | if (message_arena != submessage_arena) { |
| 20561 | channel_handle = ::google::protobuf::internal::GetOwnedMessage( |
| 20562 | message_arena, channel_handle, submessage_arena); |
| 20563 | } |
| 20564 | |
| 20565 | } else { |
| 20566 | |
| 20567 | } |
| 20568 | channel_handle_ = channel_handle; |
| 20569 | // @@protoc_insertion_point(field_set_allocated:xla.RecvRequest.channel_handle) |
| 20570 | } |
| 20571 | |
| 20572 | // ------------------------------------------------------------------- |
| 20573 | |
| 20574 | // GatherRequest |
| 20575 | |
| 20576 | // .xla.ComputationDataHandle input = 1; |
| 20577 | inline bool GatherRequest::has_input() const { |
| 20578 | return this != internal_default_instance() && input_ != NULL; |
| 20579 | } |
| 20580 | inline void GatherRequest::clear_input() { |
| 20581 | if (GetArenaNoVirtual() == NULL && input_ != NULL) { |
| 20582 | delete input_; |
| 20583 | } |
| 20584 | input_ = NULL; |
| 20585 | } |
| 20586 | inline const ::xla::ComputationDataHandle& GatherRequest::input() const { |
| 20587 | const ::xla::ComputationDataHandle* p = input_; |
| 20588 | // @@protoc_insertion_point(field_get:xla.GatherRequest.input) |
| 20589 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20590 | &::xla::_ComputationDataHandle_default_instance_); |
| 20591 | } |
| 20592 | inline ::xla::ComputationDataHandle* GatherRequest::release_input() { |
| 20593 | // @@protoc_insertion_point(field_release:xla.GatherRequest.input) |
| 20594 | |
| 20595 | ::xla::ComputationDataHandle* temp = input_; |
| 20596 | if (GetArenaNoVirtual() != NULL) { |
| 20597 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20598 | } |
| 20599 | input_ = NULL; |
| 20600 | return temp; |
| 20601 | } |
| 20602 | inline ::xla::ComputationDataHandle* GatherRequest::unsafe_arena_release_input() { |
| 20603 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GatherRequest.input) |
| 20604 | |
| 20605 | ::xla::ComputationDataHandle* temp = input_; |
| 20606 | input_ = NULL; |
| 20607 | return temp; |
| 20608 | } |
| 20609 | inline ::xla::ComputationDataHandle* GatherRequest::mutable_input() { |
| 20610 | |
| 20611 | if (input_ == NULL) { |
| 20612 | input_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20613 | GetArenaNoVirtual()); |
| 20614 | } |
| 20615 | // @@protoc_insertion_point(field_mutable:xla.GatherRequest.input) |
| 20616 | return input_; |
| 20617 | } |
| 20618 | inline void GatherRequest::set_allocated_input(::xla::ComputationDataHandle* input) { |
| 20619 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20620 | if (message_arena == NULL) { |
| 20621 | delete input_; |
| 20622 | } |
| 20623 | if (input) { |
| 20624 | ::google::protobuf::Arena* submessage_arena = |
| 20625 | ::google::protobuf::Arena::GetArena(input); |
| 20626 | if (message_arena != submessage_arena) { |
| 20627 | input = ::google::protobuf::internal::GetOwnedMessage( |
| 20628 | message_arena, input, submessage_arena); |
| 20629 | } |
| 20630 | |
| 20631 | } else { |
| 20632 | |
| 20633 | } |
| 20634 | input_ = input; |
| 20635 | // @@protoc_insertion_point(field_set_allocated:xla.GatherRequest.input) |
| 20636 | } |
| 20637 | |
| 20638 | // .xla.ComputationDataHandle gather_indices = 2; |
| 20639 | inline bool GatherRequest::has_gather_indices() const { |
| 20640 | return this != internal_default_instance() && gather_indices_ != NULL; |
| 20641 | } |
| 20642 | inline void GatherRequest::clear_gather_indices() { |
| 20643 | if (GetArenaNoVirtual() == NULL && gather_indices_ != NULL) { |
| 20644 | delete gather_indices_; |
| 20645 | } |
| 20646 | gather_indices_ = NULL; |
| 20647 | } |
| 20648 | inline const ::xla::ComputationDataHandle& GatherRequest::gather_indices() const { |
| 20649 | const ::xla::ComputationDataHandle* p = gather_indices_; |
| 20650 | // @@protoc_insertion_point(field_get:xla.GatherRequest.gather_indices) |
| 20651 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 20652 | &::xla::_ComputationDataHandle_default_instance_); |
| 20653 | } |
| 20654 | inline ::xla::ComputationDataHandle* GatherRequest::release_gather_indices() { |
| 20655 | // @@protoc_insertion_point(field_release:xla.GatherRequest.gather_indices) |
| 20656 | |
| 20657 | ::xla::ComputationDataHandle* temp = gather_indices_; |
| 20658 | if (GetArenaNoVirtual() != NULL) { |
| 20659 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20660 | } |
| 20661 | gather_indices_ = NULL; |
| 20662 | return temp; |
| 20663 | } |
| 20664 | inline ::xla::ComputationDataHandle* GatherRequest::unsafe_arena_release_gather_indices() { |
| 20665 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GatherRequest.gather_indices) |
| 20666 | |
| 20667 | ::xla::ComputationDataHandle* temp = gather_indices_; |
| 20668 | gather_indices_ = NULL; |
| 20669 | return temp; |
| 20670 | } |
| 20671 | inline ::xla::ComputationDataHandle* GatherRequest::mutable_gather_indices() { |
| 20672 | |
| 20673 | if (gather_indices_ == NULL) { |
| 20674 | gather_indices_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 20675 | GetArenaNoVirtual()); |
| 20676 | } |
| 20677 | // @@protoc_insertion_point(field_mutable:xla.GatherRequest.gather_indices) |
| 20678 | return gather_indices_; |
| 20679 | } |
| 20680 | inline void GatherRequest::set_allocated_gather_indices(::xla::ComputationDataHandle* gather_indices) { |
| 20681 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20682 | if (message_arena == NULL) { |
| 20683 | delete gather_indices_; |
| 20684 | } |
| 20685 | if (gather_indices) { |
| 20686 | ::google::protobuf::Arena* submessage_arena = |
| 20687 | ::google::protobuf::Arena::GetArena(gather_indices); |
| 20688 | if (message_arena != submessage_arena) { |
| 20689 | gather_indices = ::google::protobuf::internal::GetOwnedMessage( |
| 20690 | message_arena, gather_indices, submessage_arena); |
| 20691 | } |
| 20692 | |
| 20693 | } else { |
| 20694 | |
| 20695 | } |
| 20696 | gather_indices_ = gather_indices; |
| 20697 | // @@protoc_insertion_point(field_set_allocated:xla.GatherRequest.gather_indices) |
| 20698 | } |
| 20699 | |
| 20700 | // .xla.GatherDimensionNumbers dimension_numbers = 3; |
| 20701 | inline bool GatherRequest::has_dimension_numbers() const { |
| 20702 | return this != internal_default_instance() && dimension_numbers_ != NULL; |
| 20703 | } |
| 20704 | inline void GatherRequest::clear_dimension_numbers() { |
| 20705 | if (GetArenaNoVirtual() == NULL && dimension_numbers_ != NULL) { |
| 20706 | delete dimension_numbers_; |
| 20707 | } |
| 20708 | dimension_numbers_ = NULL; |
| 20709 | } |
| 20710 | inline const ::xla::GatherDimensionNumbers& GatherRequest::dimension_numbers() const { |
| 20711 | const ::xla::GatherDimensionNumbers* p = dimension_numbers_; |
| 20712 | // @@protoc_insertion_point(field_get:xla.GatherRequest.dimension_numbers) |
| 20713 | return p != NULL ? *p : *reinterpret_cast<const ::xla::GatherDimensionNumbers*>( |
| 20714 | &::xla::_GatherDimensionNumbers_default_instance_); |
| 20715 | } |
| 20716 | inline ::xla::GatherDimensionNumbers* GatherRequest::release_dimension_numbers() { |
| 20717 | // @@protoc_insertion_point(field_release:xla.GatherRequest.dimension_numbers) |
| 20718 | |
| 20719 | ::xla::GatherDimensionNumbers* temp = dimension_numbers_; |
| 20720 | if (GetArenaNoVirtual() != NULL) { |
| 20721 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20722 | } |
| 20723 | dimension_numbers_ = NULL; |
| 20724 | return temp; |
| 20725 | } |
| 20726 | inline ::xla::GatherDimensionNumbers* GatherRequest::unsafe_arena_release_dimension_numbers() { |
| 20727 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.GatherRequest.dimension_numbers) |
| 20728 | |
| 20729 | ::xla::GatherDimensionNumbers* temp = dimension_numbers_; |
| 20730 | dimension_numbers_ = NULL; |
| 20731 | return temp; |
| 20732 | } |
| 20733 | inline ::xla::GatherDimensionNumbers* GatherRequest::mutable_dimension_numbers() { |
| 20734 | |
| 20735 | if (dimension_numbers_ == NULL) { |
| 20736 | dimension_numbers_ = ::google::protobuf::Arena::CreateMessage< ::xla::GatherDimensionNumbers >( |
| 20737 | GetArenaNoVirtual()); |
| 20738 | } |
| 20739 | // @@protoc_insertion_point(field_mutable:xla.GatherRequest.dimension_numbers) |
| 20740 | return dimension_numbers_; |
| 20741 | } |
| 20742 | inline void GatherRequest::set_allocated_dimension_numbers(::xla::GatherDimensionNumbers* dimension_numbers) { |
| 20743 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20744 | if (message_arena == NULL) { |
| 20745 | delete dimension_numbers_; |
| 20746 | } |
| 20747 | if (dimension_numbers) { |
| 20748 | ::google::protobuf::Arena* submessage_arena = |
| 20749 | ::google::protobuf::Arena::GetArena(dimension_numbers); |
| 20750 | if (message_arena != submessage_arena) { |
| 20751 | dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( |
| 20752 | message_arena, dimension_numbers, submessage_arena); |
| 20753 | } |
| 20754 | |
| 20755 | } else { |
| 20756 | |
| 20757 | } |
| 20758 | dimension_numbers_ = dimension_numbers; |
| 20759 | // @@protoc_insertion_point(field_set_allocated:xla.GatherRequest.dimension_numbers) |
| 20760 | } |
| 20761 | |
| 20762 | // repeated int64 window_bounds = 4; |
| 20763 | inline int GatherRequest::window_bounds_size() const { |
| 20764 | return window_bounds_.size(); |
| 20765 | } |
| 20766 | inline void GatherRequest::clear_window_bounds() { |
| 20767 | window_bounds_.Clear(); |
| 20768 | } |
| 20769 | inline ::google::protobuf::int64 GatherRequest::window_bounds(int index) const { |
| 20770 | // @@protoc_insertion_point(field_get:xla.GatherRequest.window_bounds) |
| 20771 | return window_bounds_.Get(index); |
| 20772 | } |
| 20773 | inline void GatherRequest::set_window_bounds(int index, ::google::protobuf::int64 value) { |
| 20774 | window_bounds_.Set(index, value); |
| 20775 | // @@protoc_insertion_point(field_set:xla.GatherRequest.window_bounds) |
| 20776 | } |
| 20777 | inline void GatherRequest::add_window_bounds(::google::protobuf::int64 value) { |
| 20778 | window_bounds_.Add(value); |
| 20779 | // @@protoc_insertion_point(field_add:xla.GatherRequest.window_bounds) |
| 20780 | } |
| 20781 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 20782 | GatherRequest::window_bounds() const { |
| 20783 | // @@protoc_insertion_point(field_list:xla.GatherRequest.window_bounds) |
| 20784 | return window_bounds_; |
| 20785 | } |
| 20786 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 20787 | GatherRequest::mutable_window_bounds() { |
| 20788 | // @@protoc_insertion_point(field_mutable_list:xla.GatherRequest.window_bounds) |
| 20789 | return &window_bounds_; |
| 20790 | } |
| 20791 | |
| 20792 | // ------------------------------------------------------------------- |
| 20793 | |
| 20794 | // OpSharding |
| 20795 | |
| 20796 | // .xla.OpSharding.Type type = 1; |
| 20797 | inline void OpSharding::clear_type() { |
| 20798 | type_ = 0; |
| 20799 | } |
| 20800 | inline ::xla::OpSharding_Type OpSharding::type() const { |
| 20801 | // @@protoc_insertion_point(field_get:xla.OpSharding.type) |
| 20802 | return static_cast< ::xla::OpSharding_Type >(type_); |
| 20803 | } |
| 20804 | inline void OpSharding::set_type(::xla::OpSharding_Type value) { |
| 20805 | |
| 20806 | type_ = value; |
| 20807 | // @@protoc_insertion_point(field_set:xla.OpSharding.type) |
| 20808 | } |
| 20809 | |
| 20810 | // .xla.Shape tile_shape = 2; |
| 20811 | inline bool OpSharding::has_tile_shape() const { |
| 20812 | return this != internal_default_instance() && tile_shape_ != NULL; |
| 20813 | } |
| 20814 | inline void OpSharding::clear_tile_shape() { |
| 20815 | if (GetArenaNoVirtual() == NULL && tile_shape_ != NULL) { |
| 20816 | delete tile_shape_; |
| 20817 | } |
| 20818 | tile_shape_ = NULL; |
| 20819 | } |
| 20820 | inline const ::xla::Shape& OpSharding::tile_shape() const { |
| 20821 | const ::xla::Shape* p = tile_shape_; |
| 20822 | // @@protoc_insertion_point(field_get:xla.OpSharding.tile_shape) |
| 20823 | return p != NULL ? *p : *reinterpret_cast<const ::xla::Shape*>( |
| 20824 | &::xla::_Shape_default_instance_); |
| 20825 | } |
| 20826 | inline ::xla::Shape* OpSharding::release_tile_shape() { |
| 20827 | // @@protoc_insertion_point(field_release:xla.OpSharding.tile_shape) |
| 20828 | |
| 20829 | ::xla::Shape* temp = tile_shape_; |
| 20830 | if (GetArenaNoVirtual() != NULL) { |
| 20831 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20832 | } |
| 20833 | tile_shape_ = NULL; |
| 20834 | return temp; |
| 20835 | } |
| 20836 | inline ::xla::Shape* OpSharding::unsafe_arena_release_tile_shape() { |
| 20837 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpSharding.tile_shape) |
| 20838 | |
| 20839 | ::xla::Shape* temp = tile_shape_; |
| 20840 | tile_shape_ = NULL; |
| 20841 | return temp; |
| 20842 | } |
| 20843 | inline ::xla::Shape* OpSharding::mutable_tile_shape() { |
| 20844 | |
| 20845 | if (tile_shape_ == NULL) { |
| 20846 | tile_shape_ = ::google::protobuf::Arena::CreateMessage< ::xla::Shape >( |
| 20847 | GetArenaNoVirtual()); |
| 20848 | } |
| 20849 | // @@protoc_insertion_point(field_mutable:xla.OpSharding.tile_shape) |
| 20850 | return tile_shape_; |
| 20851 | } |
| 20852 | inline void OpSharding::set_allocated_tile_shape(::xla::Shape* tile_shape) { |
| 20853 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 20854 | if (message_arena == NULL) { |
| 20855 | delete tile_shape_; |
| 20856 | } |
| 20857 | if (tile_shape) { |
| 20858 | ::google::protobuf::Arena* submessage_arena = |
| 20859 | ::google::protobuf::Arena::GetArena(tile_shape); |
| 20860 | if (message_arena != submessage_arena) { |
| 20861 | tile_shape = ::google::protobuf::internal::GetOwnedMessage( |
| 20862 | message_arena, tile_shape, submessage_arena); |
| 20863 | } |
| 20864 | |
| 20865 | } else { |
| 20866 | |
| 20867 | } |
| 20868 | tile_shape_ = tile_shape; |
| 20869 | // @@protoc_insertion_point(field_set_allocated:xla.OpSharding.tile_shape) |
| 20870 | } |
| 20871 | |
| 20872 | // repeated int64 tile_assignment_dimensions = 3; |
| 20873 | inline int OpSharding::tile_assignment_dimensions_size() const { |
| 20874 | return tile_assignment_dimensions_.size(); |
| 20875 | } |
| 20876 | inline void OpSharding::clear_tile_assignment_dimensions() { |
| 20877 | tile_assignment_dimensions_.Clear(); |
| 20878 | } |
| 20879 | inline ::google::protobuf::int64 OpSharding::tile_assignment_dimensions(int index) const { |
| 20880 | // @@protoc_insertion_point(field_get:xla.OpSharding.tile_assignment_dimensions) |
| 20881 | return tile_assignment_dimensions_.Get(index); |
| 20882 | } |
| 20883 | inline void OpSharding::set_tile_assignment_dimensions(int index, ::google::protobuf::int64 value) { |
| 20884 | tile_assignment_dimensions_.Set(index, value); |
| 20885 | // @@protoc_insertion_point(field_set:xla.OpSharding.tile_assignment_dimensions) |
| 20886 | } |
| 20887 | inline void OpSharding::add_tile_assignment_dimensions(::google::protobuf::int64 value) { |
| 20888 | tile_assignment_dimensions_.Add(value); |
| 20889 | // @@protoc_insertion_point(field_add:xla.OpSharding.tile_assignment_dimensions) |
| 20890 | } |
| 20891 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 20892 | OpSharding::tile_assignment_dimensions() const { |
| 20893 | // @@protoc_insertion_point(field_list:xla.OpSharding.tile_assignment_dimensions) |
| 20894 | return tile_assignment_dimensions_; |
| 20895 | } |
| 20896 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 20897 | OpSharding::mutable_tile_assignment_dimensions() { |
| 20898 | // @@protoc_insertion_point(field_mutable_list:xla.OpSharding.tile_assignment_dimensions) |
| 20899 | return &tile_assignment_dimensions_; |
| 20900 | } |
| 20901 | |
| 20902 | // repeated int64 tile_assignment_devices = 4; |
| 20903 | inline int OpSharding::tile_assignment_devices_size() const { |
| 20904 | return tile_assignment_devices_.size(); |
| 20905 | } |
| 20906 | inline void OpSharding::clear_tile_assignment_devices() { |
| 20907 | tile_assignment_devices_.Clear(); |
| 20908 | } |
| 20909 | inline ::google::protobuf::int64 OpSharding::tile_assignment_devices(int index) const { |
| 20910 | // @@protoc_insertion_point(field_get:xla.OpSharding.tile_assignment_devices) |
| 20911 | return tile_assignment_devices_.Get(index); |
| 20912 | } |
| 20913 | inline void OpSharding::set_tile_assignment_devices(int index, ::google::protobuf::int64 value) { |
| 20914 | tile_assignment_devices_.Set(index, value); |
| 20915 | // @@protoc_insertion_point(field_set:xla.OpSharding.tile_assignment_devices) |
| 20916 | } |
| 20917 | inline void OpSharding::add_tile_assignment_devices(::google::protobuf::int64 value) { |
| 20918 | tile_assignment_devices_.Add(value); |
| 20919 | // @@protoc_insertion_point(field_add:xla.OpSharding.tile_assignment_devices) |
| 20920 | } |
| 20921 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& |
| 20922 | OpSharding::tile_assignment_devices() const { |
| 20923 | // @@protoc_insertion_point(field_list:xla.OpSharding.tile_assignment_devices) |
| 20924 | return tile_assignment_devices_; |
| 20925 | } |
| 20926 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* |
| 20927 | OpSharding::mutable_tile_assignment_devices() { |
| 20928 | // @@protoc_insertion_point(field_mutable_list:xla.OpSharding.tile_assignment_devices) |
| 20929 | return &tile_assignment_devices_; |
| 20930 | } |
| 20931 | |
| 20932 | // repeated .xla.OpSharding tuple_shardings = 5; |
| 20933 | inline int OpSharding::tuple_shardings_size() const { |
| 20934 | return tuple_shardings_.size(); |
| 20935 | } |
| 20936 | inline void OpSharding::clear_tuple_shardings() { |
| 20937 | tuple_shardings_.Clear(); |
| 20938 | } |
| 20939 | inline ::xla::OpSharding* OpSharding::mutable_tuple_shardings(int index) { |
| 20940 | // @@protoc_insertion_point(field_mutable:xla.OpSharding.tuple_shardings) |
| 20941 | return tuple_shardings_.Mutable(index); |
| 20942 | } |
| 20943 | inline ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >* |
| 20944 | OpSharding::mutable_tuple_shardings() { |
| 20945 | // @@protoc_insertion_point(field_mutable_list:xla.OpSharding.tuple_shardings) |
| 20946 | return &tuple_shardings_; |
| 20947 | } |
| 20948 | inline const ::xla::OpSharding& OpSharding::tuple_shardings(int index) const { |
| 20949 | // @@protoc_insertion_point(field_get:xla.OpSharding.tuple_shardings) |
| 20950 | return tuple_shardings_.Get(index); |
| 20951 | } |
| 20952 | inline ::xla::OpSharding* OpSharding::add_tuple_shardings() { |
| 20953 | // @@protoc_insertion_point(field_add:xla.OpSharding.tuple_shardings) |
| 20954 | return tuple_shardings_.Add(); |
| 20955 | } |
| 20956 | inline const ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >& |
| 20957 | OpSharding::tuple_shardings() const { |
| 20958 | // @@protoc_insertion_point(field_list:xla.OpSharding.tuple_shardings) |
| 20959 | return tuple_shardings_; |
| 20960 | } |
| 20961 | |
| 20962 | // ------------------------------------------------------------------- |
| 20963 | |
| 20964 | // OpRequest |
| 20965 | |
| 20966 | // .xla.ComputationHandle computation = 1; |
| 20967 | inline bool OpRequest::has_computation() const { |
| 20968 | return this != internal_default_instance() && computation_ != NULL; |
| 20969 | } |
| 20970 | inline void OpRequest::clear_computation() { |
| 20971 | if (GetArenaNoVirtual() == NULL && computation_ != NULL) { |
| 20972 | delete computation_; |
| 20973 | } |
| 20974 | computation_ = NULL; |
| 20975 | } |
| 20976 | inline const ::xla::ComputationHandle& OpRequest::computation() const { |
| 20977 | const ::xla::ComputationHandle* p = computation_; |
| 20978 | // @@protoc_insertion_point(field_get:xla.OpRequest.computation) |
| 20979 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationHandle*>( |
| 20980 | &::xla::_ComputationHandle_default_instance_); |
| 20981 | } |
| 20982 | inline ::xla::ComputationHandle* OpRequest::release_computation() { |
| 20983 | // @@protoc_insertion_point(field_release:xla.OpRequest.computation) |
| 20984 | |
| 20985 | ::xla::ComputationHandle* temp = computation_; |
| 20986 | if (GetArenaNoVirtual() != NULL) { |
| 20987 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 20988 | } |
| 20989 | computation_ = NULL; |
| 20990 | return temp; |
| 20991 | } |
| 20992 | inline ::xla::ComputationHandle* OpRequest::unsafe_arena_release_computation() { |
| 20993 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.computation) |
| 20994 | |
| 20995 | ::xla::ComputationHandle* temp = computation_; |
| 20996 | computation_ = NULL; |
| 20997 | return temp; |
| 20998 | } |
| 20999 | inline ::xla::ComputationHandle* OpRequest::mutable_computation() { |
| 21000 | |
| 21001 | if (computation_ == NULL) { |
| 21002 | computation_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationHandle >( |
| 21003 | GetArenaNoVirtual()); |
| 21004 | } |
| 21005 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.computation) |
| 21006 | return computation_; |
| 21007 | } |
| 21008 | inline void OpRequest::set_allocated_computation(::xla::ComputationHandle* computation) { |
| 21009 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 21010 | if (message_arena == NULL) { |
| 21011 | delete computation_; |
| 21012 | } |
| 21013 | if (computation) { |
| 21014 | ::google::protobuf::Arena* submessage_arena = |
| 21015 | ::google::protobuf::Arena::GetArena(computation); |
| 21016 | if (message_arena != submessage_arena) { |
| 21017 | computation = ::google::protobuf::internal::GetOwnedMessage( |
| 21018 | message_arena, computation, submessage_arena); |
| 21019 | } |
| 21020 | |
| 21021 | } else { |
| 21022 | |
| 21023 | } |
| 21024 | computation_ = computation; |
| 21025 | // @@protoc_insertion_point(field_set_allocated:xla.OpRequest.computation) |
| 21026 | } |
| 21027 | |
| 21028 | // .xla.OpMetadata metadata = 33; |
| 21029 | inline bool OpRequest::has_metadata() const { |
| 21030 | return this != internal_default_instance() && metadata_ != NULL; |
| 21031 | } |
| 21032 | inline void OpRequest::clear_metadata() { |
| 21033 | if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { |
| 21034 | delete metadata_; |
| 21035 | } |
| 21036 | metadata_ = NULL; |
| 21037 | } |
| 21038 | inline const ::xla::OpMetadata& OpRequest::metadata() const { |
| 21039 | const ::xla::OpMetadata* p = metadata_; |
| 21040 | // @@protoc_insertion_point(field_get:xla.OpRequest.metadata) |
| 21041 | return p != NULL ? *p : *reinterpret_cast<const ::xla::OpMetadata*>( |
| 21042 | &::xla::_OpMetadata_default_instance_); |
| 21043 | } |
| 21044 | inline ::xla::OpMetadata* OpRequest::release_metadata() { |
| 21045 | // @@protoc_insertion_point(field_release:xla.OpRequest.metadata) |
| 21046 | |
| 21047 | ::xla::OpMetadata* temp = metadata_; |
| 21048 | if (GetArenaNoVirtual() != NULL) { |
| 21049 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21050 | } |
| 21051 | metadata_ = NULL; |
| 21052 | return temp; |
| 21053 | } |
| 21054 | inline ::xla::OpMetadata* OpRequest::unsafe_arena_release_metadata() { |
| 21055 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.metadata) |
| 21056 | |
| 21057 | ::xla::OpMetadata* temp = metadata_; |
| 21058 | metadata_ = NULL; |
| 21059 | return temp; |
| 21060 | } |
| 21061 | inline ::xla::OpMetadata* OpRequest::mutable_metadata() { |
| 21062 | |
| 21063 | if (metadata_ == NULL) { |
| 21064 | metadata_ = ::google::protobuf::Arena::CreateMessage< ::xla::OpMetadata >( |
| 21065 | GetArenaNoVirtual()); |
| 21066 | } |
| 21067 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.metadata) |
| 21068 | return metadata_; |
| 21069 | } |
| 21070 | inline void OpRequest::set_allocated_metadata(::xla::OpMetadata* metadata) { |
| 21071 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 21072 | if (message_arena == NULL) { |
| 21073 | delete metadata_; |
| 21074 | } |
| 21075 | if (metadata) { |
| 21076 | ::google::protobuf::Arena* submessage_arena = |
| 21077 | ::google::protobuf::Arena::GetArena(metadata); |
| 21078 | if (message_arena != submessage_arena) { |
| 21079 | metadata = ::google::protobuf::internal::GetOwnedMessage( |
| 21080 | message_arena, metadata, submessage_arena); |
| 21081 | } |
| 21082 | |
| 21083 | } else { |
| 21084 | |
| 21085 | } |
| 21086 | metadata_ = metadata; |
| 21087 | // @@protoc_insertion_point(field_set_allocated:xla.OpRequest.metadata) |
| 21088 | } |
| 21089 | |
| 21090 | // .xla.OpSharding sharding = 40; |
| 21091 | inline bool OpRequest::has_sharding() const { |
| 21092 | return this != internal_default_instance() && sharding_ != NULL; |
| 21093 | } |
| 21094 | inline void OpRequest::clear_sharding() { |
| 21095 | if (GetArenaNoVirtual() == NULL && sharding_ != NULL) { |
| 21096 | delete sharding_; |
| 21097 | } |
| 21098 | sharding_ = NULL; |
| 21099 | } |
| 21100 | inline const ::xla::OpSharding& OpRequest::sharding() const { |
| 21101 | const ::xla::OpSharding* p = sharding_; |
| 21102 | // @@protoc_insertion_point(field_get:xla.OpRequest.sharding) |
| 21103 | return p != NULL ? *p : *reinterpret_cast<const ::xla::OpSharding*>( |
| 21104 | &::xla::_OpSharding_default_instance_); |
| 21105 | } |
| 21106 | inline ::xla::OpSharding* OpRequest::release_sharding() { |
| 21107 | // @@protoc_insertion_point(field_release:xla.OpRequest.sharding) |
| 21108 | |
| 21109 | ::xla::OpSharding* temp = sharding_; |
| 21110 | if (GetArenaNoVirtual() != NULL) { |
| 21111 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21112 | } |
| 21113 | sharding_ = NULL; |
| 21114 | return temp; |
| 21115 | } |
| 21116 | inline ::xla::OpSharding* OpRequest::unsafe_arena_release_sharding() { |
| 21117 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.sharding) |
| 21118 | |
| 21119 | ::xla::OpSharding* temp = sharding_; |
| 21120 | sharding_ = NULL; |
| 21121 | return temp; |
| 21122 | } |
| 21123 | inline ::xla::OpSharding* OpRequest::mutable_sharding() { |
| 21124 | |
| 21125 | if (sharding_ == NULL) { |
| 21126 | sharding_ = ::google::protobuf::Arena::CreateMessage< ::xla::OpSharding >( |
| 21127 | GetArenaNoVirtual()); |
| 21128 | } |
| 21129 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.sharding) |
| 21130 | return sharding_; |
| 21131 | } |
| 21132 | inline void OpRequest::set_allocated_sharding(::xla::OpSharding* sharding) { |
| 21133 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 21134 | if (message_arena == NULL) { |
| 21135 | delete sharding_; |
| 21136 | } |
| 21137 | if (sharding) { |
| 21138 | ::google::protobuf::Arena* submessage_arena = |
| 21139 | ::google::protobuf::Arena::GetArena(sharding); |
| 21140 | if (message_arena != submessage_arena) { |
| 21141 | sharding = ::google::protobuf::internal::GetOwnedMessage( |
| 21142 | message_arena, sharding, submessage_arena); |
| 21143 | } |
| 21144 | |
| 21145 | } else { |
| 21146 | |
| 21147 | } |
| 21148 | sharding_ = sharding; |
| 21149 | // @@protoc_insertion_point(field_set_allocated:xla.OpRequest.sharding) |
| 21150 | } |
| 21151 | |
| 21152 | // .xla.BinaryOpRequest binary_op_request = 2; |
| 21153 | inline bool OpRequest::has_binary_op_request() const { |
| 21154 | return op_case() == kBinaryOpRequest; |
| 21155 | } |
| 21156 | inline void OpRequest::set_has_binary_op_request() { |
| 21157 | _oneof_case_[0] = kBinaryOpRequest; |
| 21158 | } |
| 21159 | inline void OpRequest::clear_binary_op_request() { |
| 21160 | if (has_binary_op_request()) { |
| 21161 | if (GetArenaNoVirtual() == NULL) { |
| 21162 | delete op_.binary_op_request_; |
| 21163 | } |
| 21164 | clear_has_op(); |
| 21165 | } |
| 21166 | } |
| 21167 | inline ::xla::BinaryOpRequest* OpRequest::release_binary_op_request() { |
| 21168 | // @@protoc_insertion_point(field_release:xla.OpRequest.binary_op_request) |
| 21169 | if (has_binary_op_request()) { |
| 21170 | clear_has_op(); |
| 21171 | ::xla::BinaryOpRequest* temp = op_.binary_op_request_; |
| 21172 | if (GetArenaNoVirtual() != NULL) { |
| 21173 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21174 | } |
| 21175 | op_.binary_op_request_ = NULL; |
| 21176 | return temp; |
| 21177 | } else { |
| 21178 | return NULL; |
| 21179 | } |
| 21180 | } |
| 21181 | inline const ::xla::BinaryOpRequest& OpRequest::binary_op_request() const { |
| 21182 | // @@protoc_insertion_point(field_get:xla.OpRequest.binary_op_request) |
| 21183 | return has_binary_op_request() |
| 21184 | ? *op_.binary_op_request_ |
| 21185 | : *reinterpret_cast< ::xla::BinaryOpRequest*>(&::xla::_BinaryOpRequest_default_instance_); |
| 21186 | } |
| 21187 | inline ::xla::BinaryOpRequest* OpRequest::unsafe_arena_release_binary_op_request() { |
| 21188 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.binary_op_request) |
| 21189 | if (has_binary_op_request()) { |
| 21190 | clear_has_op(); |
| 21191 | ::xla::BinaryOpRequest* temp = op_.binary_op_request_; |
| 21192 | op_.binary_op_request_ = NULL; |
| 21193 | return temp; |
| 21194 | } else { |
| 21195 | return NULL; |
| 21196 | } |
| 21197 | } |
| 21198 | inline void OpRequest::unsafe_arena_set_allocated_binary_op_request(::xla::BinaryOpRequest* binary_op_request) { |
| 21199 | clear_op(); |
| 21200 | if (binary_op_request) { |
| 21201 | set_has_binary_op_request(); |
| 21202 | op_.binary_op_request_ = binary_op_request; |
| 21203 | } |
| 21204 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.binary_op_request) |
| 21205 | } |
| 21206 | inline ::xla::BinaryOpRequest* OpRequest::mutable_binary_op_request() { |
| 21207 | if (!has_binary_op_request()) { |
| 21208 | clear_op(); |
| 21209 | set_has_binary_op_request(); |
| 21210 | op_.binary_op_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::BinaryOpRequest >( |
| 21211 | GetArenaNoVirtual()); |
| 21212 | } |
| 21213 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.binary_op_request) |
| 21214 | return op_.binary_op_request_; |
| 21215 | } |
| 21216 | |
| 21217 | // .xla.BroadcastRequest broadcast_request = 3; |
| 21218 | inline bool OpRequest::has_broadcast_request() const { |
| 21219 | return op_case() == kBroadcastRequest; |
| 21220 | } |
| 21221 | inline void OpRequest::set_has_broadcast_request() { |
| 21222 | _oneof_case_[0] = kBroadcastRequest; |
| 21223 | } |
| 21224 | inline void OpRequest::clear_broadcast_request() { |
| 21225 | if (has_broadcast_request()) { |
| 21226 | if (GetArenaNoVirtual() == NULL) { |
| 21227 | delete op_.broadcast_request_; |
| 21228 | } |
| 21229 | clear_has_op(); |
| 21230 | } |
| 21231 | } |
| 21232 | inline ::xla::BroadcastRequest* OpRequest::release_broadcast_request() { |
| 21233 | // @@protoc_insertion_point(field_release:xla.OpRequest.broadcast_request) |
| 21234 | if (has_broadcast_request()) { |
| 21235 | clear_has_op(); |
| 21236 | ::xla::BroadcastRequest* temp = op_.broadcast_request_; |
| 21237 | if (GetArenaNoVirtual() != NULL) { |
| 21238 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21239 | } |
| 21240 | op_.broadcast_request_ = NULL; |
| 21241 | return temp; |
| 21242 | } else { |
| 21243 | return NULL; |
| 21244 | } |
| 21245 | } |
| 21246 | inline const ::xla::BroadcastRequest& OpRequest::broadcast_request() const { |
| 21247 | // @@protoc_insertion_point(field_get:xla.OpRequest.broadcast_request) |
| 21248 | return has_broadcast_request() |
| 21249 | ? *op_.broadcast_request_ |
| 21250 | : *reinterpret_cast< ::xla::BroadcastRequest*>(&::xla::_BroadcastRequest_default_instance_); |
| 21251 | } |
| 21252 | inline ::xla::BroadcastRequest* OpRequest::unsafe_arena_release_broadcast_request() { |
| 21253 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.broadcast_request) |
| 21254 | if (has_broadcast_request()) { |
| 21255 | clear_has_op(); |
| 21256 | ::xla::BroadcastRequest* temp = op_.broadcast_request_; |
| 21257 | op_.broadcast_request_ = NULL; |
| 21258 | return temp; |
| 21259 | } else { |
| 21260 | return NULL; |
| 21261 | } |
| 21262 | } |
| 21263 | inline void OpRequest::unsafe_arena_set_allocated_broadcast_request(::xla::BroadcastRequest* broadcast_request) { |
| 21264 | clear_op(); |
| 21265 | if (broadcast_request) { |
| 21266 | set_has_broadcast_request(); |
| 21267 | op_.broadcast_request_ = broadcast_request; |
| 21268 | } |
| 21269 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.broadcast_request) |
| 21270 | } |
| 21271 | inline ::xla::BroadcastRequest* OpRequest::mutable_broadcast_request() { |
| 21272 | if (!has_broadcast_request()) { |
| 21273 | clear_op(); |
| 21274 | set_has_broadcast_request(); |
| 21275 | op_.broadcast_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::BroadcastRequest >( |
| 21276 | GetArenaNoVirtual()); |
| 21277 | } |
| 21278 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.broadcast_request) |
| 21279 | return op_.broadcast_request_; |
| 21280 | } |
| 21281 | |
| 21282 | // .xla.CallRequest call_request = 4; |
| 21283 | inline bool OpRequest::has_call_request() const { |
| 21284 | return op_case() == kCallRequest; |
| 21285 | } |
| 21286 | inline void OpRequest::set_has_call_request() { |
| 21287 | _oneof_case_[0] = kCallRequest; |
| 21288 | } |
| 21289 | inline void OpRequest::clear_call_request() { |
| 21290 | if (has_call_request()) { |
| 21291 | if (GetArenaNoVirtual() == NULL) { |
| 21292 | delete op_.call_request_; |
| 21293 | } |
| 21294 | clear_has_op(); |
| 21295 | } |
| 21296 | } |
| 21297 | inline ::xla::CallRequest* OpRequest::release_call_request() { |
| 21298 | // @@protoc_insertion_point(field_release:xla.OpRequest.call_request) |
| 21299 | if (has_call_request()) { |
| 21300 | clear_has_op(); |
| 21301 | ::xla::CallRequest* temp = op_.call_request_; |
| 21302 | if (GetArenaNoVirtual() != NULL) { |
| 21303 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21304 | } |
| 21305 | op_.call_request_ = NULL; |
| 21306 | return temp; |
| 21307 | } else { |
| 21308 | return NULL; |
| 21309 | } |
| 21310 | } |
| 21311 | inline const ::xla::CallRequest& OpRequest::call_request() const { |
| 21312 | // @@protoc_insertion_point(field_get:xla.OpRequest.call_request) |
| 21313 | return has_call_request() |
| 21314 | ? *op_.call_request_ |
| 21315 | : *reinterpret_cast< ::xla::CallRequest*>(&::xla::_CallRequest_default_instance_); |
| 21316 | } |
| 21317 | inline ::xla::CallRequest* OpRequest::unsafe_arena_release_call_request() { |
| 21318 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.call_request) |
| 21319 | if (has_call_request()) { |
| 21320 | clear_has_op(); |
| 21321 | ::xla::CallRequest* temp = op_.call_request_; |
| 21322 | op_.call_request_ = NULL; |
| 21323 | return temp; |
| 21324 | } else { |
| 21325 | return NULL; |
| 21326 | } |
| 21327 | } |
| 21328 | inline void OpRequest::unsafe_arena_set_allocated_call_request(::xla::CallRequest* call_request) { |
| 21329 | clear_op(); |
| 21330 | if (call_request) { |
| 21331 | set_has_call_request(); |
| 21332 | op_.call_request_ = call_request; |
| 21333 | } |
| 21334 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.call_request) |
| 21335 | } |
| 21336 | inline ::xla::CallRequest* OpRequest::mutable_call_request() { |
| 21337 | if (!has_call_request()) { |
| 21338 | clear_op(); |
| 21339 | set_has_call_request(); |
| 21340 | op_.call_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::CallRequest >( |
| 21341 | GetArenaNoVirtual()); |
| 21342 | } |
| 21343 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.call_request) |
| 21344 | return op_.call_request_; |
| 21345 | } |
| 21346 | |
| 21347 | // .xla.ConcatenateRequest concatenate_request = 5; |
| 21348 | inline bool OpRequest::has_concatenate_request() const { |
| 21349 | return op_case() == kConcatenateRequest; |
| 21350 | } |
| 21351 | inline void OpRequest::set_has_concatenate_request() { |
| 21352 | _oneof_case_[0] = kConcatenateRequest; |
| 21353 | } |
| 21354 | inline void OpRequest::clear_concatenate_request() { |
| 21355 | if (has_concatenate_request()) { |
| 21356 | if (GetArenaNoVirtual() == NULL) { |
| 21357 | delete op_.concatenate_request_; |
| 21358 | } |
| 21359 | clear_has_op(); |
| 21360 | } |
| 21361 | } |
| 21362 | inline ::xla::ConcatenateRequest* OpRequest::release_concatenate_request() { |
| 21363 | // @@protoc_insertion_point(field_release:xla.OpRequest.concatenate_request) |
| 21364 | if (has_concatenate_request()) { |
| 21365 | clear_has_op(); |
| 21366 | ::xla::ConcatenateRequest* temp = op_.concatenate_request_; |
| 21367 | if (GetArenaNoVirtual() != NULL) { |
| 21368 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21369 | } |
| 21370 | op_.concatenate_request_ = NULL; |
| 21371 | return temp; |
| 21372 | } else { |
| 21373 | return NULL; |
| 21374 | } |
| 21375 | } |
| 21376 | inline const ::xla::ConcatenateRequest& OpRequest::concatenate_request() const { |
| 21377 | // @@protoc_insertion_point(field_get:xla.OpRequest.concatenate_request) |
| 21378 | return has_concatenate_request() |
| 21379 | ? *op_.concatenate_request_ |
| 21380 | : *reinterpret_cast< ::xla::ConcatenateRequest*>(&::xla::_ConcatenateRequest_default_instance_); |
| 21381 | } |
| 21382 | inline ::xla::ConcatenateRequest* OpRequest::unsafe_arena_release_concatenate_request() { |
| 21383 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.concatenate_request) |
| 21384 | if (has_concatenate_request()) { |
| 21385 | clear_has_op(); |
| 21386 | ::xla::ConcatenateRequest* temp = op_.concatenate_request_; |
| 21387 | op_.concatenate_request_ = NULL; |
| 21388 | return temp; |
| 21389 | } else { |
| 21390 | return NULL; |
| 21391 | } |
| 21392 | } |
| 21393 | inline void OpRequest::unsafe_arena_set_allocated_concatenate_request(::xla::ConcatenateRequest* concatenate_request) { |
| 21394 | clear_op(); |
| 21395 | if (concatenate_request) { |
| 21396 | set_has_concatenate_request(); |
| 21397 | op_.concatenate_request_ = concatenate_request; |
| 21398 | } |
| 21399 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.concatenate_request) |
| 21400 | } |
| 21401 | inline ::xla::ConcatenateRequest* OpRequest::mutable_concatenate_request() { |
| 21402 | if (!has_concatenate_request()) { |
| 21403 | clear_op(); |
| 21404 | set_has_concatenate_request(); |
| 21405 | op_.concatenate_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConcatenateRequest >( |
| 21406 | GetArenaNoVirtual()); |
| 21407 | } |
| 21408 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.concatenate_request) |
| 21409 | return op_.concatenate_request_; |
| 21410 | } |
| 21411 | |
| 21412 | // .xla.ConstantRequest constant_request = 6; |
| 21413 | inline bool OpRequest::has_constant_request() const { |
| 21414 | return op_case() == kConstantRequest; |
| 21415 | } |
| 21416 | inline void OpRequest::set_has_constant_request() { |
| 21417 | _oneof_case_[0] = kConstantRequest; |
| 21418 | } |
| 21419 | inline void OpRequest::clear_constant_request() { |
| 21420 | if (has_constant_request()) { |
| 21421 | if (GetArenaNoVirtual() == NULL) { |
| 21422 | delete op_.constant_request_; |
| 21423 | } |
| 21424 | clear_has_op(); |
| 21425 | } |
| 21426 | } |
| 21427 | inline ::xla::ConstantRequest* OpRequest::release_constant_request() { |
| 21428 | // @@protoc_insertion_point(field_release:xla.OpRequest.constant_request) |
| 21429 | if (has_constant_request()) { |
| 21430 | clear_has_op(); |
| 21431 | ::xla::ConstantRequest* temp = op_.constant_request_; |
| 21432 | if (GetArenaNoVirtual() != NULL) { |
| 21433 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21434 | } |
| 21435 | op_.constant_request_ = NULL; |
| 21436 | return temp; |
| 21437 | } else { |
| 21438 | return NULL; |
| 21439 | } |
| 21440 | } |
| 21441 | inline const ::xla::ConstantRequest& OpRequest::constant_request() const { |
| 21442 | // @@protoc_insertion_point(field_get:xla.OpRequest.constant_request) |
| 21443 | return has_constant_request() |
| 21444 | ? *op_.constant_request_ |
| 21445 | : *reinterpret_cast< ::xla::ConstantRequest*>(&::xla::_ConstantRequest_default_instance_); |
| 21446 | } |
| 21447 | inline ::xla::ConstantRequest* OpRequest::unsafe_arena_release_constant_request() { |
| 21448 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.constant_request) |
| 21449 | if (has_constant_request()) { |
| 21450 | clear_has_op(); |
| 21451 | ::xla::ConstantRequest* temp = op_.constant_request_; |
| 21452 | op_.constant_request_ = NULL; |
| 21453 | return temp; |
| 21454 | } else { |
| 21455 | return NULL; |
| 21456 | } |
| 21457 | } |
| 21458 | inline void OpRequest::unsafe_arena_set_allocated_constant_request(::xla::ConstantRequest* constant_request) { |
| 21459 | clear_op(); |
| 21460 | if (constant_request) { |
| 21461 | set_has_constant_request(); |
| 21462 | op_.constant_request_ = constant_request; |
| 21463 | } |
| 21464 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.constant_request) |
| 21465 | } |
| 21466 | inline ::xla::ConstantRequest* OpRequest::mutable_constant_request() { |
| 21467 | if (!has_constant_request()) { |
| 21468 | clear_op(); |
| 21469 | set_has_constant_request(); |
| 21470 | op_.constant_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConstantRequest >( |
| 21471 | GetArenaNoVirtual()); |
| 21472 | } |
| 21473 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.constant_request) |
| 21474 | return op_.constant_request_; |
| 21475 | } |
| 21476 | |
| 21477 | // .xla.ConvertRequest convert_request = 7; |
| 21478 | inline bool OpRequest::has_convert_request() const { |
| 21479 | return op_case() == kConvertRequest; |
| 21480 | } |
| 21481 | inline void OpRequest::set_has_convert_request() { |
| 21482 | _oneof_case_[0] = kConvertRequest; |
| 21483 | } |
| 21484 | inline void OpRequest::clear_convert_request() { |
| 21485 | if (has_convert_request()) { |
| 21486 | if (GetArenaNoVirtual() == NULL) { |
| 21487 | delete op_.convert_request_; |
| 21488 | } |
| 21489 | clear_has_op(); |
| 21490 | } |
| 21491 | } |
| 21492 | inline ::xla::ConvertRequest* OpRequest::release_convert_request() { |
| 21493 | // @@protoc_insertion_point(field_release:xla.OpRequest.convert_request) |
| 21494 | if (has_convert_request()) { |
| 21495 | clear_has_op(); |
| 21496 | ::xla::ConvertRequest* temp = op_.convert_request_; |
| 21497 | if (GetArenaNoVirtual() != NULL) { |
| 21498 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21499 | } |
| 21500 | op_.convert_request_ = NULL; |
| 21501 | return temp; |
| 21502 | } else { |
| 21503 | return NULL; |
| 21504 | } |
| 21505 | } |
| 21506 | inline const ::xla::ConvertRequest& OpRequest::convert_request() const { |
| 21507 | // @@protoc_insertion_point(field_get:xla.OpRequest.convert_request) |
| 21508 | return has_convert_request() |
| 21509 | ? *op_.convert_request_ |
| 21510 | : *reinterpret_cast< ::xla::ConvertRequest*>(&::xla::_ConvertRequest_default_instance_); |
| 21511 | } |
| 21512 | inline ::xla::ConvertRequest* OpRequest::unsafe_arena_release_convert_request() { |
| 21513 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.convert_request) |
| 21514 | if (has_convert_request()) { |
| 21515 | clear_has_op(); |
| 21516 | ::xla::ConvertRequest* temp = op_.convert_request_; |
| 21517 | op_.convert_request_ = NULL; |
| 21518 | return temp; |
| 21519 | } else { |
| 21520 | return NULL; |
| 21521 | } |
| 21522 | } |
| 21523 | inline void OpRequest::unsafe_arena_set_allocated_convert_request(::xla::ConvertRequest* convert_request) { |
| 21524 | clear_op(); |
| 21525 | if (convert_request) { |
| 21526 | set_has_convert_request(); |
| 21527 | op_.convert_request_ = convert_request; |
| 21528 | } |
| 21529 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.convert_request) |
| 21530 | } |
| 21531 | inline ::xla::ConvertRequest* OpRequest::mutable_convert_request() { |
| 21532 | if (!has_convert_request()) { |
| 21533 | clear_op(); |
| 21534 | set_has_convert_request(); |
| 21535 | op_.convert_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConvertRequest >( |
| 21536 | GetArenaNoVirtual()); |
| 21537 | } |
| 21538 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.convert_request) |
| 21539 | return op_.convert_request_; |
| 21540 | } |
| 21541 | |
| 21542 | // .xla.ConvolveRequest convolve_request = 8; |
| 21543 | inline bool OpRequest::has_convolve_request() const { |
| 21544 | return op_case() == kConvolveRequest; |
| 21545 | } |
| 21546 | inline void OpRequest::set_has_convolve_request() { |
| 21547 | _oneof_case_[0] = kConvolveRequest; |
| 21548 | } |
| 21549 | inline void OpRequest::clear_convolve_request() { |
| 21550 | if (has_convolve_request()) { |
| 21551 | if (GetArenaNoVirtual() == NULL) { |
| 21552 | delete op_.convolve_request_; |
| 21553 | } |
| 21554 | clear_has_op(); |
| 21555 | } |
| 21556 | } |
| 21557 | inline ::xla::ConvolveRequest* OpRequest::release_convolve_request() { |
| 21558 | // @@protoc_insertion_point(field_release:xla.OpRequest.convolve_request) |
| 21559 | if (has_convolve_request()) { |
| 21560 | clear_has_op(); |
| 21561 | ::xla::ConvolveRequest* temp = op_.convolve_request_; |
| 21562 | if (GetArenaNoVirtual() != NULL) { |
| 21563 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21564 | } |
| 21565 | op_.convolve_request_ = NULL; |
| 21566 | return temp; |
| 21567 | } else { |
| 21568 | return NULL; |
| 21569 | } |
| 21570 | } |
| 21571 | inline const ::xla::ConvolveRequest& OpRequest::convolve_request() const { |
| 21572 | // @@protoc_insertion_point(field_get:xla.OpRequest.convolve_request) |
| 21573 | return has_convolve_request() |
| 21574 | ? *op_.convolve_request_ |
| 21575 | : *reinterpret_cast< ::xla::ConvolveRequest*>(&::xla::_ConvolveRequest_default_instance_); |
| 21576 | } |
| 21577 | inline ::xla::ConvolveRequest* OpRequest::unsafe_arena_release_convolve_request() { |
| 21578 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.convolve_request) |
| 21579 | if (has_convolve_request()) { |
| 21580 | clear_has_op(); |
| 21581 | ::xla::ConvolveRequest* temp = op_.convolve_request_; |
| 21582 | op_.convolve_request_ = NULL; |
| 21583 | return temp; |
| 21584 | } else { |
| 21585 | return NULL; |
| 21586 | } |
| 21587 | } |
| 21588 | inline void OpRequest::unsafe_arena_set_allocated_convolve_request(::xla::ConvolveRequest* convolve_request) { |
| 21589 | clear_op(); |
| 21590 | if (convolve_request) { |
| 21591 | set_has_convolve_request(); |
| 21592 | op_.convolve_request_ = convolve_request; |
| 21593 | } |
| 21594 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.convolve_request) |
| 21595 | } |
| 21596 | inline ::xla::ConvolveRequest* OpRequest::mutable_convolve_request() { |
| 21597 | if (!has_convolve_request()) { |
| 21598 | clear_op(); |
| 21599 | set_has_convolve_request(); |
| 21600 | op_.convolve_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConvolveRequest >( |
| 21601 | GetArenaNoVirtual()); |
| 21602 | } |
| 21603 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.convolve_request) |
| 21604 | return op_.convolve_request_; |
| 21605 | } |
| 21606 | |
| 21607 | // .xla.CrossReplicaSumRequest cross_replica_sum_request = 9; |
| 21608 | inline bool OpRequest::has_cross_replica_sum_request() const { |
| 21609 | return op_case() == kCrossReplicaSumRequest; |
| 21610 | } |
| 21611 | inline void OpRequest::set_has_cross_replica_sum_request() { |
| 21612 | _oneof_case_[0] = kCrossReplicaSumRequest; |
| 21613 | } |
| 21614 | inline void OpRequest::clear_cross_replica_sum_request() { |
| 21615 | if (has_cross_replica_sum_request()) { |
| 21616 | if (GetArenaNoVirtual() == NULL) { |
| 21617 | delete op_.cross_replica_sum_request_; |
| 21618 | } |
| 21619 | clear_has_op(); |
| 21620 | } |
| 21621 | } |
| 21622 | inline ::xla::CrossReplicaSumRequest* OpRequest::release_cross_replica_sum_request() { |
| 21623 | // @@protoc_insertion_point(field_release:xla.OpRequest.cross_replica_sum_request) |
| 21624 | if (has_cross_replica_sum_request()) { |
| 21625 | clear_has_op(); |
| 21626 | ::xla::CrossReplicaSumRequest* temp = op_.cross_replica_sum_request_; |
| 21627 | if (GetArenaNoVirtual() != NULL) { |
| 21628 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21629 | } |
| 21630 | op_.cross_replica_sum_request_ = NULL; |
| 21631 | return temp; |
| 21632 | } else { |
| 21633 | return NULL; |
| 21634 | } |
| 21635 | } |
| 21636 | inline const ::xla::CrossReplicaSumRequest& OpRequest::cross_replica_sum_request() const { |
| 21637 | // @@protoc_insertion_point(field_get:xla.OpRequest.cross_replica_sum_request) |
| 21638 | return has_cross_replica_sum_request() |
| 21639 | ? *op_.cross_replica_sum_request_ |
| 21640 | : *reinterpret_cast< ::xla::CrossReplicaSumRequest*>(&::xla::_CrossReplicaSumRequest_default_instance_); |
| 21641 | } |
| 21642 | inline ::xla::CrossReplicaSumRequest* OpRequest::unsafe_arena_release_cross_replica_sum_request() { |
| 21643 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.cross_replica_sum_request) |
| 21644 | if (has_cross_replica_sum_request()) { |
| 21645 | clear_has_op(); |
| 21646 | ::xla::CrossReplicaSumRequest* temp = op_.cross_replica_sum_request_; |
| 21647 | op_.cross_replica_sum_request_ = NULL; |
| 21648 | return temp; |
| 21649 | } else { |
| 21650 | return NULL; |
| 21651 | } |
| 21652 | } |
| 21653 | inline void OpRequest::unsafe_arena_set_allocated_cross_replica_sum_request(::xla::CrossReplicaSumRequest* cross_replica_sum_request) { |
| 21654 | clear_op(); |
| 21655 | if (cross_replica_sum_request) { |
| 21656 | set_has_cross_replica_sum_request(); |
| 21657 | op_.cross_replica_sum_request_ = cross_replica_sum_request; |
| 21658 | } |
| 21659 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.cross_replica_sum_request) |
| 21660 | } |
| 21661 | inline ::xla::CrossReplicaSumRequest* OpRequest::mutable_cross_replica_sum_request() { |
| 21662 | if (!has_cross_replica_sum_request()) { |
| 21663 | clear_op(); |
| 21664 | set_has_cross_replica_sum_request(); |
| 21665 | op_.cross_replica_sum_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::CrossReplicaSumRequest >( |
| 21666 | GetArenaNoVirtual()); |
| 21667 | } |
| 21668 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.cross_replica_sum_request) |
| 21669 | return op_.cross_replica_sum_request_; |
| 21670 | } |
| 21671 | |
| 21672 | // .xla.CustomCallRequest custom_call_request = 10; |
| 21673 | inline bool OpRequest::has_custom_call_request() const { |
| 21674 | return op_case() == kCustomCallRequest; |
| 21675 | } |
| 21676 | inline void OpRequest::set_has_custom_call_request() { |
| 21677 | _oneof_case_[0] = kCustomCallRequest; |
| 21678 | } |
| 21679 | inline void OpRequest::clear_custom_call_request() { |
| 21680 | if (has_custom_call_request()) { |
| 21681 | if (GetArenaNoVirtual() == NULL) { |
| 21682 | delete op_.custom_call_request_; |
| 21683 | } |
| 21684 | clear_has_op(); |
| 21685 | } |
| 21686 | } |
| 21687 | inline ::xla::CustomCallRequest* OpRequest::release_custom_call_request() { |
| 21688 | // @@protoc_insertion_point(field_release:xla.OpRequest.custom_call_request) |
| 21689 | if (has_custom_call_request()) { |
| 21690 | clear_has_op(); |
| 21691 | ::xla::CustomCallRequest* temp = op_.custom_call_request_; |
| 21692 | if (GetArenaNoVirtual() != NULL) { |
| 21693 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21694 | } |
| 21695 | op_.custom_call_request_ = NULL; |
| 21696 | return temp; |
| 21697 | } else { |
| 21698 | return NULL; |
| 21699 | } |
| 21700 | } |
| 21701 | inline const ::xla::CustomCallRequest& OpRequest::custom_call_request() const { |
| 21702 | // @@protoc_insertion_point(field_get:xla.OpRequest.custom_call_request) |
| 21703 | return has_custom_call_request() |
| 21704 | ? *op_.custom_call_request_ |
| 21705 | : *reinterpret_cast< ::xla::CustomCallRequest*>(&::xla::_CustomCallRequest_default_instance_); |
| 21706 | } |
| 21707 | inline ::xla::CustomCallRequest* OpRequest::unsafe_arena_release_custom_call_request() { |
| 21708 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.custom_call_request) |
| 21709 | if (has_custom_call_request()) { |
| 21710 | clear_has_op(); |
| 21711 | ::xla::CustomCallRequest* temp = op_.custom_call_request_; |
| 21712 | op_.custom_call_request_ = NULL; |
| 21713 | return temp; |
| 21714 | } else { |
| 21715 | return NULL; |
| 21716 | } |
| 21717 | } |
| 21718 | inline void OpRequest::unsafe_arena_set_allocated_custom_call_request(::xla::CustomCallRequest* custom_call_request) { |
| 21719 | clear_op(); |
| 21720 | if (custom_call_request) { |
| 21721 | set_has_custom_call_request(); |
| 21722 | op_.custom_call_request_ = custom_call_request; |
| 21723 | } |
| 21724 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.custom_call_request) |
| 21725 | } |
| 21726 | inline ::xla::CustomCallRequest* OpRequest::mutable_custom_call_request() { |
| 21727 | if (!has_custom_call_request()) { |
| 21728 | clear_op(); |
| 21729 | set_has_custom_call_request(); |
| 21730 | op_.custom_call_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::CustomCallRequest >( |
| 21731 | GetArenaNoVirtual()); |
| 21732 | } |
| 21733 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.custom_call_request) |
| 21734 | return op_.custom_call_request_; |
| 21735 | } |
| 21736 | |
| 21737 | // .xla.DotRequest dot_request = 43; |
| 21738 | inline bool OpRequest::has_dot_request() const { |
| 21739 | return op_case() == kDotRequest; |
| 21740 | } |
| 21741 | inline void OpRequest::set_has_dot_request() { |
| 21742 | _oneof_case_[0] = kDotRequest; |
| 21743 | } |
| 21744 | inline void OpRequest::clear_dot_request() { |
| 21745 | if (has_dot_request()) { |
| 21746 | if (GetArenaNoVirtual() == NULL) { |
| 21747 | delete op_.dot_request_; |
| 21748 | } |
| 21749 | clear_has_op(); |
| 21750 | } |
| 21751 | } |
| 21752 | inline ::xla::DotRequest* OpRequest::release_dot_request() { |
| 21753 | // @@protoc_insertion_point(field_release:xla.OpRequest.dot_request) |
| 21754 | if (has_dot_request()) { |
| 21755 | clear_has_op(); |
| 21756 | ::xla::DotRequest* temp = op_.dot_request_; |
| 21757 | if (GetArenaNoVirtual() != NULL) { |
| 21758 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21759 | } |
| 21760 | op_.dot_request_ = NULL; |
| 21761 | return temp; |
| 21762 | } else { |
| 21763 | return NULL; |
| 21764 | } |
| 21765 | } |
| 21766 | inline const ::xla::DotRequest& OpRequest::dot_request() const { |
| 21767 | // @@protoc_insertion_point(field_get:xla.OpRequest.dot_request) |
| 21768 | return has_dot_request() |
| 21769 | ? *op_.dot_request_ |
| 21770 | : *reinterpret_cast< ::xla::DotRequest*>(&::xla::_DotRequest_default_instance_); |
| 21771 | } |
| 21772 | inline ::xla::DotRequest* OpRequest::unsafe_arena_release_dot_request() { |
| 21773 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.dot_request) |
| 21774 | if (has_dot_request()) { |
| 21775 | clear_has_op(); |
| 21776 | ::xla::DotRequest* temp = op_.dot_request_; |
| 21777 | op_.dot_request_ = NULL; |
| 21778 | return temp; |
| 21779 | } else { |
| 21780 | return NULL; |
| 21781 | } |
| 21782 | } |
| 21783 | inline void OpRequest::unsafe_arena_set_allocated_dot_request(::xla::DotRequest* dot_request) { |
| 21784 | clear_op(); |
| 21785 | if (dot_request) { |
| 21786 | set_has_dot_request(); |
| 21787 | op_.dot_request_ = dot_request; |
| 21788 | } |
| 21789 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.dot_request) |
| 21790 | } |
| 21791 | inline ::xla::DotRequest* OpRequest::mutable_dot_request() { |
| 21792 | if (!has_dot_request()) { |
| 21793 | clear_op(); |
| 21794 | set_has_dot_request(); |
| 21795 | op_.dot_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::DotRequest >( |
| 21796 | GetArenaNoVirtual()); |
| 21797 | } |
| 21798 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.dot_request) |
| 21799 | return op_.dot_request_; |
| 21800 | } |
| 21801 | |
| 21802 | // .xla.DynamicSliceRequest dynamic_slice_request = 11; |
| 21803 | inline bool OpRequest::has_dynamic_slice_request() const { |
| 21804 | return op_case() == kDynamicSliceRequest; |
| 21805 | } |
| 21806 | inline void OpRequest::set_has_dynamic_slice_request() { |
| 21807 | _oneof_case_[0] = kDynamicSliceRequest; |
| 21808 | } |
| 21809 | inline void OpRequest::clear_dynamic_slice_request() { |
| 21810 | if (has_dynamic_slice_request()) { |
| 21811 | if (GetArenaNoVirtual() == NULL) { |
| 21812 | delete op_.dynamic_slice_request_; |
| 21813 | } |
| 21814 | clear_has_op(); |
| 21815 | } |
| 21816 | } |
| 21817 | inline ::xla::DynamicSliceRequest* OpRequest::release_dynamic_slice_request() { |
| 21818 | // @@protoc_insertion_point(field_release:xla.OpRequest.dynamic_slice_request) |
| 21819 | if (has_dynamic_slice_request()) { |
| 21820 | clear_has_op(); |
| 21821 | ::xla::DynamicSliceRequest* temp = op_.dynamic_slice_request_; |
| 21822 | if (GetArenaNoVirtual() != NULL) { |
| 21823 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21824 | } |
| 21825 | op_.dynamic_slice_request_ = NULL; |
| 21826 | return temp; |
| 21827 | } else { |
| 21828 | return NULL; |
| 21829 | } |
| 21830 | } |
| 21831 | inline const ::xla::DynamicSliceRequest& OpRequest::dynamic_slice_request() const { |
| 21832 | // @@protoc_insertion_point(field_get:xla.OpRequest.dynamic_slice_request) |
| 21833 | return has_dynamic_slice_request() |
| 21834 | ? *op_.dynamic_slice_request_ |
| 21835 | : *reinterpret_cast< ::xla::DynamicSliceRequest*>(&::xla::_DynamicSliceRequest_default_instance_); |
| 21836 | } |
| 21837 | inline ::xla::DynamicSliceRequest* OpRequest::unsafe_arena_release_dynamic_slice_request() { |
| 21838 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.dynamic_slice_request) |
| 21839 | if (has_dynamic_slice_request()) { |
| 21840 | clear_has_op(); |
| 21841 | ::xla::DynamicSliceRequest* temp = op_.dynamic_slice_request_; |
| 21842 | op_.dynamic_slice_request_ = NULL; |
| 21843 | return temp; |
| 21844 | } else { |
| 21845 | return NULL; |
| 21846 | } |
| 21847 | } |
| 21848 | inline void OpRequest::unsafe_arena_set_allocated_dynamic_slice_request(::xla::DynamicSliceRequest* dynamic_slice_request) { |
| 21849 | clear_op(); |
| 21850 | if (dynamic_slice_request) { |
| 21851 | set_has_dynamic_slice_request(); |
| 21852 | op_.dynamic_slice_request_ = dynamic_slice_request; |
| 21853 | } |
| 21854 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.dynamic_slice_request) |
| 21855 | } |
| 21856 | inline ::xla::DynamicSliceRequest* OpRequest::mutable_dynamic_slice_request() { |
| 21857 | if (!has_dynamic_slice_request()) { |
| 21858 | clear_op(); |
| 21859 | set_has_dynamic_slice_request(); |
| 21860 | op_.dynamic_slice_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::DynamicSliceRequest >( |
| 21861 | GetArenaNoVirtual()); |
| 21862 | } |
| 21863 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.dynamic_slice_request) |
| 21864 | return op_.dynamic_slice_request_; |
| 21865 | } |
| 21866 | |
| 21867 | // .xla.DynamicUpdateSliceRequest dynamic_update_slice_request = 12; |
| 21868 | inline bool OpRequest::has_dynamic_update_slice_request() const { |
| 21869 | return op_case() == kDynamicUpdateSliceRequest; |
| 21870 | } |
| 21871 | inline void OpRequest::set_has_dynamic_update_slice_request() { |
| 21872 | _oneof_case_[0] = kDynamicUpdateSliceRequest; |
| 21873 | } |
| 21874 | inline void OpRequest::clear_dynamic_update_slice_request() { |
| 21875 | if (has_dynamic_update_slice_request()) { |
| 21876 | if (GetArenaNoVirtual() == NULL) { |
| 21877 | delete op_.dynamic_update_slice_request_; |
| 21878 | } |
| 21879 | clear_has_op(); |
| 21880 | } |
| 21881 | } |
| 21882 | inline ::xla::DynamicUpdateSliceRequest* OpRequest::release_dynamic_update_slice_request() { |
| 21883 | // @@protoc_insertion_point(field_release:xla.OpRequest.dynamic_update_slice_request) |
| 21884 | if (has_dynamic_update_slice_request()) { |
| 21885 | clear_has_op(); |
| 21886 | ::xla::DynamicUpdateSliceRequest* temp = op_.dynamic_update_slice_request_; |
| 21887 | if (GetArenaNoVirtual() != NULL) { |
| 21888 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21889 | } |
| 21890 | op_.dynamic_update_slice_request_ = NULL; |
| 21891 | return temp; |
| 21892 | } else { |
| 21893 | return NULL; |
| 21894 | } |
| 21895 | } |
| 21896 | inline const ::xla::DynamicUpdateSliceRequest& OpRequest::dynamic_update_slice_request() const { |
| 21897 | // @@protoc_insertion_point(field_get:xla.OpRequest.dynamic_update_slice_request) |
| 21898 | return has_dynamic_update_slice_request() |
| 21899 | ? *op_.dynamic_update_slice_request_ |
| 21900 | : *reinterpret_cast< ::xla::DynamicUpdateSliceRequest*>(&::xla::_DynamicUpdateSliceRequest_default_instance_); |
| 21901 | } |
| 21902 | inline ::xla::DynamicUpdateSliceRequest* OpRequest::unsafe_arena_release_dynamic_update_slice_request() { |
| 21903 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.dynamic_update_slice_request) |
| 21904 | if (has_dynamic_update_slice_request()) { |
| 21905 | clear_has_op(); |
| 21906 | ::xla::DynamicUpdateSliceRequest* temp = op_.dynamic_update_slice_request_; |
| 21907 | op_.dynamic_update_slice_request_ = NULL; |
| 21908 | return temp; |
| 21909 | } else { |
| 21910 | return NULL; |
| 21911 | } |
| 21912 | } |
| 21913 | inline void OpRequest::unsafe_arena_set_allocated_dynamic_update_slice_request(::xla::DynamicUpdateSliceRequest* dynamic_update_slice_request) { |
| 21914 | clear_op(); |
| 21915 | if (dynamic_update_slice_request) { |
| 21916 | set_has_dynamic_update_slice_request(); |
| 21917 | op_.dynamic_update_slice_request_ = dynamic_update_slice_request; |
| 21918 | } |
| 21919 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.dynamic_update_slice_request) |
| 21920 | } |
| 21921 | inline ::xla::DynamicUpdateSliceRequest* OpRequest::mutable_dynamic_update_slice_request() { |
| 21922 | if (!has_dynamic_update_slice_request()) { |
| 21923 | clear_op(); |
| 21924 | set_has_dynamic_update_slice_request(); |
| 21925 | op_.dynamic_update_slice_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::DynamicUpdateSliceRequest >( |
| 21926 | GetArenaNoVirtual()); |
| 21927 | } |
| 21928 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.dynamic_update_slice_request) |
| 21929 | return op_.dynamic_update_slice_request_; |
| 21930 | } |
| 21931 | |
| 21932 | // .xla.GetTupleElementRequest get_tuple_element_request = 13; |
| 21933 | inline bool OpRequest::has_get_tuple_element_request() const { |
| 21934 | return op_case() == kGetTupleElementRequest; |
| 21935 | } |
| 21936 | inline void OpRequest::set_has_get_tuple_element_request() { |
| 21937 | _oneof_case_[0] = kGetTupleElementRequest; |
| 21938 | } |
| 21939 | inline void OpRequest::clear_get_tuple_element_request() { |
| 21940 | if (has_get_tuple_element_request()) { |
| 21941 | if (GetArenaNoVirtual() == NULL) { |
| 21942 | delete op_.get_tuple_element_request_; |
| 21943 | } |
| 21944 | clear_has_op(); |
| 21945 | } |
| 21946 | } |
| 21947 | inline ::xla::GetTupleElementRequest* OpRequest::release_get_tuple_element_request() { |
| 21948 | // @@protoc_insertion_point(field_release:xla.OpRequest.get_tuple_element_request) |
| 21949 | if (has_get_tuple_element_request()) { |
| 21950 | clear_has_op(); |
| 21951 | ::xla::GetTupleElementRequest* temp = op_.get_tuple_element_request_; |
| 21952 | if (GetArenaNoVirtual() != NULL) { |
| 21953 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 21954 | } |
| 21955 | op_.get_tuple_element_request_ = NULL; |
| 21956 | return temp; |
| 21957 | } else { |
| 21958 | return NULL; |
| 21959 | } |
| 21960 | } |
| 21961 | inline const ::xla::GetTupleElementRequest& OpRequest::get_tuple_element_request() const { |
| 21962 | // @@protoc_insertion_point(field_get:xla.OpRequest.get_tuple_element_request) |
| 21963 | return has_get_tuple_element_request() |
| 21964 | ? *op_.get_tuple_element_request_ |
| 21965 | : *reinterpret_cast< ::xla::GetTupleElementRequest*>(&::xla::_GetTupleElementRequest_default_instance_); |
| 21966 | } |
| 21967 | inline ::xla::GetTupleElementRequest* OpRequest::unsafe_arena_release_get_tuple_element_request() { |
| 21968 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.get_tuple_element_request) |
| 21969 | if (has_get_tuple_element_request()) { |
| 21970 | clear_has_op(); |
| 21971 | ::xla::GetTupleElementRequest* temp = op_.get_tuple_element_request_; |
| 21972 | op_.get_tuple_element_request_ = NULL; |
| 21973 | return temp; |
| 21974 | } else { |
| 21975 | return NULL; |
| 21976 | } |
| 21977 | } |
| 21978 | inline void OpRequest::unsafe_arena_set_allocated_get_tuple_element_request(::xla::GetTupleElementRequest* get_tuple_element_request) { |
| 21979 | clear_op(); |
| 21980 | if (get_tuple_element_request) { |
| 21981 | set_has_get_tuple_element_request(); |
| 21982 | op_.get_tuple_element_request_ = get_tuple_element_request; |
| 21983 | } |
| 21984 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.get_tuple_element_request) |
| 21985 | } |
| 21986 | inline ::xla::GetTupleElementRequest* OpRequest::mutable_get_tuple_element_request() { |
| 21987 | if (!has_get_tuple_element_request()) { |
| 21988 | clear_op(); |
| 21989 | set_has_get_tuple_element_request(); |
| 21990 | op_.get_tuple_element_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::GetTupleElementRequest >( |
| 21991 | GetArenaNoVirtual()); |
| 21992 | } |
| 21993 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.get_tuple_element_request) |
| 21994 | return op_.get_tuple_element_request_; |
| 21995 | } |
| 21996 | |
| 21997 | // .xla.InfeedRequest infeed_request = 14; |
| 21998 | inline bool OpRequest::has_infeed_request() const { |
| 21999 | return op_case() == kInfeedRequest; |
| 22000 | } |
| 22001 | inline void OpRequest::set_has_infeed_request() { |
| 22002 | _oneof_case_[0] = kInfeedRequest; |
| 22003 | } |
| 22004 | inline void OpRequest::clear_infeed_request() { |
| 22005 | if (has_infeed_request()) { |
| 22006 | if (GetArenaNoVirtual() == NULL) { |
| 22007 | delete op_.infeed_request_; |
| 22008 | } |
| 22009 | clear_has_op(); |
| 22010 | } |
| 22011 | } |
| 22012 | inline ::xla::InfeedRequest* OpRequest::release_infeed_request() { |
| 22013 | // @@protoc_insertion_point(field_release:xla.OpRequest.infeed_request) |
| 22014 | if (has_infeed_request()) { |
| 22015 | clear_has_op(); |
| 22016 | ::xla::InfeedRequest* temp = op_.infeed_request_; |
| 22017 | if (GetArenaNoVirtual() != NULL) { |
| 22018 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22019 | } |
| 22020 | op_.infeed_request_ = NULL; |
| 22021 | return temp; |
| 22022 | } else { |
| 22023 | return NULL; |
| 22024 | } |
| 22025 | } |
| 22026 | inline const ::xla::InfeedRequest& OpRequest::infeed_request() const { |
| 22027 | // @@protoc_insertion_point(field_get:xla.OpRequest.infeed_request) |
| 22028 | return has_infeed_request() |
| 22029 | ? *op_.infeed_request_ |
| 22030 | : *reinterpret_cast< ::xla::InfeedRequest*>(&::xla::_InfeedRequest_default_instance_); |
| 22031 | } |
| 22032 | inline ::xla::InfeedRequest* OpRequest::unsafe_arena_release_infeed_request() { |
| 22033 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.infeed_request) |
| 22034 | if (has_infeed_request()) { |
| 22035 | clear_has_op(); |
| 22036 | ::xla::InfeedRequest* temp = op_.infeed_request_; |
| 22037 | op_.infeed_request_ = NULL; |
| 22038 | return temp; |
| 22039 | } else { |
| 22040 | return NULL; |
| 22041 | } |
| 22042 | } |
| 22043 | inline void OpRequest::unsafe_arena_set_allocated_infeed_request(::xla::InfeedRequest* infeed_request) { |
| 22044 | clear_op(); |
| 22045 | if (infeed_request) { |
| 22046 | set_has_infeed_request(); |
| 22047 | op_.infeed_request_ = infeed_request; |
| 22048 | } |
| 22049 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.infeed_request) |
| 22050 | } |
| 22051 | inline ::xla::InfeedRequest* OpRequest::mutable_infeed_request() { |
| 22052 | if (!has_infeed_request()) { |
| 22053 | clear_op(); |
| 22054 | set_has_infeed_request(); |
| 22055 | op_.infeed_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::InfeedRequest >( |
| 22056 | GetArenaNoVirtual()); |
| 22057 | } |
| 22058 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.infeed_request) |
| 22059 | return op_.infeed_request_; |
| 22060 | } |
| 22061 | |
| 22062 | // .xla.MapRequest map_request = 15; |
| 22063 | inline bool OpRequest::has_map_request() const { |
| 22064 | return op_case() == kMapRequest; |
| 22065 | } |
| 22066 | inline void OpRequest::set_has_map_request() { |
| 22067 | _oneof_case_[0] = kMapRequest; |
| 22068 | } |
| 22069 | inline void OpRequest::clear_map_request() { |
| 22070 | if (has_map_request()) { |
| 22071 | if (GetArenaNoVirtual() == NULL) { |
| 22072 | delete op_.map_request_; |
| 22073 | } |
| 22074 | clear_has_op(); |
| 22075 | } |
| 22076 | } |
| 22077 | inline ::xla::MapRequest* OpRequest::release_map_request() { |
| 22078 | // @@protoc_insertion_point(field_release:xla.OpRequest.map_request) |
| 22079 | if (has_map_request()) { |
| 22080 | clear_has_op(); |
| 22081 | ::xla::MapRequest* temp = op_.map_request_; |
| 22082 | if (GetArenaNoVirtual() != NULL) { |
| 22083 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22084 | } |
| 22085 | op_.map_request_ = NULL; |
| 22086 | return temp; |
| 22087 | } else { |
| 22088 | return NULL; |
| 22089 | } |
| 22090 | } |
| 22091 | inline const ::xla::MapRequest& OpRequest::map_request() const { |
| 22092 | // @@protoc_insertion_point(field_get:xla.OpRequest.map_request) |
| 22093 | return has_map_request() |
| 22094 | ? *op_.map_request_ |
| 22095 | : *reinterpret_cast< ::xla::MapRequest*>(&::xla::_MapRequest_default_instance_); |
| 22096 | } |
| 22097 | inline ::xla::MapRequest* OpRequest::unsafe_arena_release_map_request() { |
| 22098 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.map_request) |
| 22099 | if (has_map_request()) { |
| 22100 | clear_has_op(); |
| 22101 | ::xla::MapRequest* temp = op_.map_request_; |
| 22102 | op_.map_request_ = NULL; |
| 22103 | return temp; |
| 22104 | } else { |
| 22105 | return NULL; |
| 22106 | } |
| 22107 | } |
| 22108 | inline void OpRequest::unsafe_arena_set_allocated_map_request(::xla::MapRequest* map_request) { |
| 22109 | clear_op(); |
| 22110 | if (map_request) { |
| 22111 | set_has_map_request(); |
| 22112 | op_.map_request_ = map_request; |
| 22113 | } |
| 22114 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.map_request) |
| 22115 | } |
| 22116 | inline ::xla::MapRequest* OpRequest::mutable_map_request() { |
| 22117 | if (!has_map_request()) { |
| 22118 | clear_op(); |
| 22119 | set_has_map_request(); |
| 22120 | op_.map_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::MapRequest >( |
| 22121 | GetArenaNoVirtual()); |
| 22122 | } |
| 22123 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.map_request) |
| 22124 | return op_.map_request_; |
| 22125 | } |
| 22126 | |
| 22127 | // .xla.PadRequest pad_request = 16; |
| 22128 | inline bool OpRequest::has_pad_request() const { |
| 22129 | return op_case() == kPadRequest; |
| 22130 | } |
| 22131 | inline void OpRequest::set_has_pad_request() { |
| 22132 | _oneof_case_[0] = kPadRequest; |
| 22133 | } |
| 22134 | inline void OpRequest::clear_pad_request() { |
| 22135 | if (has_pad_request()) { |
| 22136 | if (GetArenaNoVirtual() == NULL) { |
| 22137 | delete op_.pad_request_; |
| 22138 | } |
| 22139 | clear_has_op(); |
| 22140 | } |
| 22141 | } |
| 22142 | inline ::xla::PadRequest* OpRequest::release_pad_request() { |
| 22143 | // @@protoc_insertion_point(field_release:xla.OpRequest.pad_request) |
| 22144 | if (has_pad_request()) { |
| 22145 | clear_has_op(); |
| 22146 | ::xla::PadRequest* temp = op_.pad_request_; |
| 22147 | if (GetArenaNoVirtual() != NULL) { |
| 22148 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22149 | } |
| 22150 | op_.pad_request_ = NULL; |
| 22151 | return temp; |
| 22152 | } else { |
| 22153 | return NULL; |
| 22154 | } |
| 22155 | } |
| 22156 | inline const ::xla::PadRequest& OpRequest::pad_request() const { |
| 22157 | // @@protoc_insertion_point(field_get:xla.OpRequest.pad_request) |
| 22158 | return has_pad_request() |
| 22159 | ? *op_.pad_request_ |
| 22160 | : *reinterpret_cast< ::xla::PadRequest*>(&::xla::_PadRequest_default_instance_); |
| 22161 | } |
| 22162 | inline ::xla::PadRequest* OpRequest::unsafe_arena_release_pad_request() { |
| 22163 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.pad_request) |
| 22164 | if (has_pad_request()) { |
| 22165 | clear_has_op(); |
| 22166 | ::xla::PadRequest* temp = op_.pad_request_; |
| 22167 | op_.pad_request_ = NULL; |
| 22168 | return temp; |
| 22169 | } else { |
| 22170 | return NULL; |
| 22171 | } |
| 22172 | } |
| 22173 | inline void OpRequest::unsafe_arena_set_allocated_pad_request(::xla::PadRequest* pad_request) { |
| 22174 | clear_op(); |
| 22175 | if (pad_request) { |
| 22176 | set_has_pad_request(); |
| 22177 | op_.pad_request_ = pad_request; |
| 22178 | } |
| 22179 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.pad_request) |
| 22180 | } |
| 22181 | inline ::xla::PadRequest* OpRequest::mutable_pad_request() { |
| 22182 | if (!has_pad_request()) { |
| 22183 | clear_op(); |
| 22184 | set_has_pad_request(); |
| 22185 | op_.pad_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::PadRequest >( |
| 22186 | GetArenaNoVirtual()); |
| 22187 | } |
| 22188 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.pad_request) |
| 22189 | return op_.pad_request_; |
| 22190 | } |
| 22191 | |
| 22192 | // .xla.ParameterRequest parameter_request = 17; |
| 22193 | inline bool OpRequest::has_parameter_request() const { |
| 22194 | return op_case() == kParameterRequest; |
| 22195 | } |
| 22196 | inline void OpRequest::set_has_parameter_request() { |
| 22197 | _oneof_case_[0] = kParameterRequest; |
| 22198 | } |
| 22199 | inline void OpRequest::clear_parameter_request() { |
| 22200 | if (has_parameter_request()) { |
| 22201 | if (GetArenaNoVirtual() == NULL) { |
| 22202 | delete op_.parameter_request_; |
| 22203 | } |
| 22204 | clear_has_op(); |
| 22205 | } |
| 22206 | } |
| 22207 | inline ::xla::ParameterRequest* OpRequest::release_parameter_request() { |
| 22208 | // @@protoc_insertion_point(field_release:xla.OpRequest.parameter_request) |
| 22209 | if (has_parameter_request()) { |
| 22210 | clear_has_op(); |
| 22211 | ::xla::ParameterRequest* temp = op_.parameter_request_; |
| 22212 | if (GetArenaNoVirtual() != NULL) { |
| 22213 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22214 | } |
| 22215 | op_.parameter_request_ = NULL; |
| 22216 | return temp; |
| 22217 | } else { |
| 22218 | return NULL; |
| 22219 | } |
| 22220 | } |
| 22221 | inline const ::xla::ParameterRequest& OpRequest::parameter_request() const { |
| 22222 | // @@protoc_insertion_point(field_get:xla.OpRequest.parameter_request) |
| 22223 | return has_parameter_request() |
| 22224 | ? *op_.parameter_request_ |
| 22225 | : *reinterpret_cast< ::xla::ParameterRequest*>(&::xla::_ParameterRequest_default_instance_); |
| 22226 | } |
| 22227 | inline ::xla::ParameterRequest* OpRequest::unsafe_arena_release_parameter_request() { |
| 22228 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.parameter_request) |
| 22229 | if (has_parameter_request()) { |
| 22230 | clear_has_op(); |
| 22231 | ::xla::ParameterRequest* temp = op_.parameter_request_; |
| 22232 | op_.parameter_request_ = NULL; |
| 22233 | return temp; |
| 22234 | } else { |
| 22235 | return NULL; |
| 22236 | } |
| 22237 | } |
| 22238 | inline void OpRequest::unsafe_arena_set_allocated_parameter_request(::xla::ParameterRequest* parameter_request) { |
| 22239 | clear_op(); |
| 22240 | if (parameter_request) { |
| 22241 | set_has_parameter_request(); |
| 22242 | op_.parameter_request_ = parameter_request; |
| 22243 | } |
| 22244 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.parameter_request) |
| 22245 | } |
| 22246 | inline ::xla::ParameterRequest* OpRequest::mutable_parameter_request() { |
| 22247 | if (!has_parameter_request()) { |
| 22248 | clear_op(); |
| 22249 | set_has_parameter_request(); |
| 22250 | op_.parameter_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ParameterRequest >( |
| 22251 | GetArenaNoVirtual()); |
| 22252 | } |
| 22253 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.parameter_request) |
| 22254 | return op_.parameter_request_; |
| 22255 | } |
| 22256 | |
| 22257 | // .xla.ReducePrecisionRequest reduce_precision_request = 36; |
| 22258 | inline bool OpRequest::has_reduce_precision_request() const { |
| 22259 | return op_case() == kReducePrecisionRequest; |
| 22260 | } |
| 22261 | inline void OpRequest::set_has_reduce_precision_request() { |
| 22262 | _oneof_case_[0] = kReducePrecisionRequest; |
| 22263 | } |
| 22264 | inline void OpRequest::clear_reduce_precision_request() { |
| 22265 | if (has_reduce_precision_request()) { |
| 22266 | if (GetArenaNoVirtual() == NULL) { |
| 22267 | delete op_.reduce_precision_request_; |
| 22268 | } |
| 22269 | clear_has_op(); |
| 22270 | } |
| 22271 | } |
| 22272 | inline ::xla::ReducePrecisionRequest* OpRequest::release_reduce_precision_request() { |
| 22273 | // @@protoc_insertion_point(field_release:xla.OpRequest.reduce_precision_request) |
| 22274 | if (has_reduce_precision_request()) { |
| 22275 | clear_has_op(); |
| 22276 | ::xla::ReducePrecisionRequest* temp = op_.reduce_precision_request_; |
| 22277 | if (GetArenaNoVirtual() != NULL) { |
| 22278 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22279 | } |
| 22280 | op_.reduce_precision_request_ = NULL; |
| 22281 | return temp; |
| 22282 | } else { |
| 22283 | return NULL; |
| 22284 | } |
| 22285 | } |
| 22286 | inline const ::xla::ReducePrecisionRequest& OpRequest::reduce_precision_request() const { |
| 22287 | // @@protoc_insertion_point(field_get:xla.OpRequest.reduce_precision_request) |
| 22288 | return has_reduce_precision_request() |
| 22289 | ? *op_.reduce_precision_request_ |
| 22290 | : *reinterpret_cast< ::xla::ReducePrecisionRequest*>(&::xla::_ReducePrecisionRequest_default_instance_); |
| 22291 | } |
| 22292 | inline ::xla::ReducePrecisionRequest* OpRequest::unsafe_arena_release_reduce_precision_request() { |
| 22293 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.reduce_precision_request) |
| 22294 | if (has_reduce_precision_request()) { |
| 22295 | clear_has_op(); |
| 22296 | ::xla::ReducePrecisionRequest* temp = op_.reduce_precision_request_; |
| 22297 | op_.reduce_precision_request_ = NULL; |
| 22298 | return temp; |
| 22299 | } else { |
| 22300 | return NULL; |
| 22301 | } |
| 22302 | } |
| 22303 | inline void OpRequest::unsafe_arena_set_allocated_reduce_precision_request(::xla::ReducePrecisionRequest* reduce_precision_request) { |
| 22304 | clear_op(); |
| 22305 | if (reduce_precision_request) { |
| 22306 | set_has_reduce_precision_request(); |
| 22307 | op_.reduce_precision_request_ = reduce_precision_request; |
| 22308 | } |
| 22309 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.reduce_precision_request) |
| 22310 | } |
| 22311 | inline ::xla::ReducePrecisionRequest* OpRequest::mutable_reduce_precision_request() { |
| 22312 | if (!has_reduce_precision_request()) { |
| 22313 | clear_op(); |
| 22314 | set_has_reduce_precision_request(); |
| 22315 | op_.reduce_precision_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ReducePrecisionRequest >( |
| 22316 | GetArenaNoVirtual()); |
| 22317 | } |
| 22318 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.reduce_precision_request) |
| 22319 | return op_.reduce_precision_request_; |
| 22320 | } |
| 22321 | |
| 22322 | // .xla.ReduceRequest reduce_request = 18; |
| 22323 | inline bool OpRequest::has_reduce_request() const { |
| 22324 | return op_case() == kReduceRequest; |
| 22325 | } |
| 22326 | inline void OpRequest::set_has_reduce_request() { |
| 22327 | _oneof_case_[0] = kReduceRequest; |
| 22328 | } |
| 22329 | inline void OpRequest::clear_reduce_request() { |
| 22330 | if (has_reduce_request()) { |
| 22331 | if (GetArenaNoVirtual() == NULL) { |
| 22332 | delete op_.reduce_request_; |
| 22333 | } |
| 22334 | clear_has_op(); |
| 22335 | } |
| 22336 | } |
| 22337 | inline ::xla::ReduceRequest* OpRequest::release_reduce_request() { |
| 22338 | // @@protoc_insertion_point(field_release:xla.OpRequest.reduce_request) |
| 22339 | if (has_reduce_request()) { |
| 22340 | clear_has_op(); |
| 22341 | ::xla::ReduceRequest* temp = op_.reduce_request_; |
| 22342 | if (GetArenaNoVirtual() != NULL) { |
| 22343 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22344 | } |
| 22345 | op_.reduce_request_ = NULL; |
| 22346 | return temp; |
| 22347 | } else { |
| 22348 | return NULL; |
| 22349 | } |
| 22350 | } |
| 22351 | inline const ::xla::ReduceRequest& OpRequest::reduce_request() const { |
| 22352 | // @@protoc_insertion_point(field_get:xla.OpRequest.reduce_request) |
| 22353 | return has_reduce_request() |
| 22354 | ? *op_.reduce_request_ |
| 22355 | : *reinterpret_cast< ::xla::ReduceRequest*>(&::xla::_ReduceRequest_default_instance_); |
| 22356 | } |
| 22357 | inline ::xla::ReduceRequest* OpRequest::unsafe_arena_release_reduce_request() { |
| 22358 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.reduce_request) |
| 22359 | if (has_reduce_request()) { |
| 22360 | clear_has_op(); |
| 22361 | ::xla::ReduceRequest* temp = op_.reduce_request_; |
| 22362 | op_.reduce_request_ = NULL; |
| 22363 | return temp; |
| 22364 | } else { |
| 22365 | return NULL; |
| 22366 | } |
| 22367 | } |
| 22368 | inline void OpRequest::unsafe_arena_set_allocated_reduce_request(::xla::ReduceRequest* reduce_request) { |
| 22369 | clear_op(); |
| 22370 | if (reduce_request) { |
| 22371 | set_has_reduce_request(); |
| 22372 | op_.reduce_request_ = reduce_request; |
| 22373 | } |
| 22374 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.reduce_request) |
| 22375 | } |
| 22376 | inline ::xla::ReduceRequest* OpRequest::mutable_reduce_request() { |
| 22377 | if (!has_reduce_request()) { |
| 22378 | clear_op(); |
| 22379 | set_has_reduce_request(); |
| 22380 | op_.reduce_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ReduceRequest >( |
| 22381 | GetArenaNoVirtual()); |
| 22382 | } |
| 22383 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.reduce_request) |
| 22384 | return op_.reduce_request_; |
| 22385 | } |
| 22386 | |
| 22387 | // .xla.ReduceWindowRequest reduce_window_request = 19; |
| 22388 | inline bool OpRequest::has_reduce_window_request() const { |
| 22389 | return op_case() == kReduceWindowRequest; |
| 22390 | } |
| 22391 | inline void OpRequest::set_has_reduce_window_request() { |
| 22392 | _oneof_case_[0] = kReduceWindowRequest; |
| 22393 | } |
| 22394 | inline void OpRequest::clear_reduce_window_request() { |
| 22395 | if (has_reduce_window_request()) { |
| 22396 | if (GetArenaNoVirtual() == NULL) { |
| 22397 | delete op_.reduce_window_request_; |
| 22398 | } |
| 22399 | clear_has_op(); |
| 22400 | } |
| 22401 | } |
| 22402 | inline ::xla::ReduceWindowRequest* OpRequest::release_reduce_window_request() { |
| 22403 | // @@protoc_insertion_point(field_release:xla.OpRequest.reduce_window_request) |
| 22404 | if (has_reduce_window_request()) { |
| 22405 | clear_has_op(); |
| 22406 | ::xla::ReduceWindowRequest* temp = op_.reduce_window_request_; |
| 22407 | if (GetArenaNoVirtual() != NULL) { |
| 22408 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22409 | } |
| 22410 | op_.reduce_window_request_ = NULL; |
| 22411 | return temp; |
| 22412 | } else { |
| 22413 | return NULL; |
| 22414 | } |
| 22415 | } |
| 22416 | inline const ::xla::ReduceWindowRequest& OpRequest::reduce_window_request() const { |
| 22417 | // @@protoc_insertion_point(field_get:xla.OpRequest.reduce_window_request) |
| 22418 | return has_reduce_window_request() |
| 22419 | ? *op_.reduce_window_request_ |
| 22420 | : *reinterpret_cast< ::xla::ReduceWindowRequest*>(&::xla::_ReduceWindowRequest_default_instance_); |
| 22421 | } |
| 22422 | inline ::xla::ReduceWindowRequest* OpRequest::unsafe_arena_release_reduce_window_request() { |
| 22423 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.reduce_window_request) |
| 22424 | if (has_reduce_window_request()) { |
| 22425 | clear_has_op(); |
| 22426 | ::xla::ReduceWindowRequest* temp = op_.reduce_window_request_; |
| 22427 | op_.reduce_window_request_ = NULL; |
| 22428 | return temp; |
| 22429 | } else { |
| 22430 | return NULL; |
| 22431 | } |
| 22432 | } |
| 22433 | inline void OpRequest::unsafe_arena_set_allocated_reduce_window_request(::xla::ReduceWindowRequest* reduce_window_request) { |
| 22434 | clear_op(); |
| 22435 | if (reduce_window_request) { |
| 22436 | set_has_reduce_window_request(); |
| 22437 | op_.reduce_window_request_ = reduce_window_request; |
| 22438 | } |
| 22439 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.reduce_window_request) |
| 22440 | } |
| 22441 | inline ::xla::ReduceWindowRequest* OpRequest::mutable_reduce_window_request() { |
| 22442 | if (!has_reduce_window_request()) { |
| 22443 | clear_op(); |
| 22444 | set_has_reduce_window_request(); |
| 22445 | op_.reduce_window_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ReduceWindowRequest >( |
| 22446 | GetArenaNoVirtual()); |
| 22447 | } |
| 22448 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.reduce_window_request) |
| 22449 | return op_.reduce_window_request_; |
| 22450 | } |
| 22451 | |
| 22452 | // .xla.ReshapeRequest reshape_request = 20; |
| 22453 | inline bool OpRequest::has_reshape_request() const { |
| 22454 | return op_case() == kReshapeRequest; |
| 22455 | } |
| 22456 | inline void OpRequest::set_has_reshape_request() { |
| 22457 | _oneof_case_[0] = kReshapeRequest; |
| 22458 | } |
| 22459 | inline void OpRequest::clear_reshape_request() { |
| 22460 | if (has_reshape_request()) { |
| 22461 | if (GetArenaNoVirtual() == NULL) { |
| 22462 | delete op_.reshape_request_; |
| 22463 | } |
| 22464 | clear_has_op(); |
| 22465 | } |
| 22466 | } |
| 22467 | inline ::xla::ReshapeRequest* OpRequest::release_reshape_request() { |
| 22468 | // @@protoc_insertion_point(field_release:xla.OpRequest.reshape_request) |
| 22469 | if (has_reshape_request()) { |
| 22470 | clear_has_op(); |
| 22471 | ::xla::ReshapeRequest* temp = op_.reshape_request_; |
| 22472 | if (GetArenaNoVirtual() != NULL) { |
| 22473 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22474 | } |
| 22475 | op_.reshape_request_ = NULL; |
| 22476 | return temp; |
| 22477 | } else { |
| 22478 | return NULL; |
| 22479 | } |
| 22480 | } |
| 22481 | inline const ::xla::ReshapeRequest& OpRequest::reshape_request() const { |
| 22482 | // @@protoc_insertion_point(field_get:xla.OpRequest.reshape_request) |
| 22483 | return has_reshape_request() |
| 22484 | ? *op_.reshape_request_ |
| 22485 | : *reinterpret_cast< ::xla::ReshapeRequest*>(&::xla::_ReshapeRequest_default_instance_); |
| 22486 | } |
| 22487 | inline ::xla::ReshapeRequest* OpRequest::unsafe_arena_release_reshape_request() { |
| 22488 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.reshape_request) |
| 22489 | if (has_reshape_request()) { |
| 22490 | clear_has_op(); |
| 22491 | ::xla::ReshapeRequest* temp = op_.reshape_request_; |
| 22492 | op_.reshape_request_ = NULL; |
| 22493 | return temp; |
| 22494 | } else { |
| 22495 | return NULL; |
| 22496 | } |
| 22497 | } |
| 22498 | inline void OpRequest::unsafe_arena_set_allocated_reshape_request(::xla::ReshapeRequest* reshape_request) { |
| 22499 | clear_op(); |
| 22500 | if (reshape_request) { |
| 22501 | set_has_reshape_request(); |
| 22502 | op_.reshape_request_ = reshape_request; |
| 22503 | } |
| 22504 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.reshape_request) |
| 22505 | } |
| 22506 | inline ::xla::ReshapeRequest* OpRequest::mutable_reshape_request() { |
| 22507 | if (!has_reshape_request()) { |
| 22508 | clear_op(); |
| 22509 | set_has_reshape_request(); |
| 22510 | op_.reshape_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ReshapeRequest >( |
| 22511 | GetArenaNoVirtual()); |
| 22512 | } |
| 22513 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.reshape_request) |
| 22514 | return op_.reshape_request_; |
| 22515 | } |
| 22516 | |
| 22517 | // .xla.ReverseRequest reverse_request = 21; |
| 22518 | inline bool OpRequest::has_reverse_request() const { |
| 22519 | return op_case() == kReverseRequest; |
| 22520 | } |
| 22521 | inline void OpRequest::set_has_reverse_request() { |
| 22522 | _oneof_case_[0] = kReverseRequest; |
| 22523 | } |
| 22524 | inline void OpRequest::clear_reverse_request() { |
| 22525 | if (has_reverse_request()) { |
| 22526 | if (GetArenaNoVirtual() == NULL) { |
| 22527 | delete op_.reverse_request_; |
| 22528 | } |
| 22529 | clear_has_op(); |
| 22530 | } |
| 22531 | } |
| 22532 | inline ::xla::ReverseRequest* OpRequest::release_reverse_request() { |
| 22533 | // @@protoc_insertion_point(field_release:xla.OpRequest.reverse_request) |
| 22534 | if (has_reverse_request()) { |
| 22535 | clear_has_op(); |
| 22536 | ::xla::ReverseRequest* temp = op_.reverse_request_; |
| 22537 | if (GetArenaNoVirtual() != NULL) { |
| 22538 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22539 | } |
| 22540 | op_.reverse_request_ = NULL; |
| 22541 | return temp; |
| 22542 | } else { |
| 22543 | return NULL; |
| 22544 | } |
| 22545 | } |
| 22546 | inline const ::xla::ReverseRequest& OpRequest::reverse_request() const { |
| 22547 | // @@protoc_insertion_point(field_get:xla.OpRequest.reverse_request) |
| 22548 | return has_reverse_request() |
| 22549 | ? *op_.reverse_request_ |
| 22550 | : *reinterpret_cast< ::xla::ReverseRequest*>(&::xla::_ReverseRequest_default_instance_); |
| 22551 | } |
| 22552 | inline ::xla::ReverseRequest* OpRequest::unsafe_arena_release_reverse_request() { |
| 22553 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.reverse_request) |
| 22554 | if (has_reverse_request()) { |
| 22555 | clear_has_op(); |
| 22556 | ::xla::ReverseRequest* temp = op_.reverse_request_; |
| 22557 | op_.reverse_request_ = NULL; |
| 22558 | return temp; |
| 22559 | } else { |
| 22560 | return NULL; |
| 22561 | } |
| 22562 | } |
| 22563 | inline void OpRequest::unsafe_arena_set_allocated_reverse_request(::xla::ReverseRequest* reverse_request) { |
| 22564 | clear_op(); |
| 22565 | if (reverse_request) { |
| 22566 | set_has_reverse_request(); |
| 22567 | op_.reverse_request_ = reverse_request; |
| 22568 | } |
| 22569 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.reverse_request) |
| 22570 | } |
| 22571 | inline ::xla::ReverseRequest* OpRequest::mutable_reverse_request() { |
| 22572 | if (!has_reverse_request()) { |
| 22573 | clear_op(); |
| 22574 | set_has_reverse_request(); |
| 22575 | op_.reverse_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ReverseRequest >( |
| 22576 | GetArenaNoVirtual()); |
| 22577 | } |
| 22578 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.reverse_request) |
| 22579 | return op_.reverse_request_; |
| 22580 | } |
| 22581 | |
| 22582 | // .xla.RngRequest rng_request = 22; |
| 22583 | inline bool OpRequest::has_rng_request() const { |
| 22584 | return op_case() == kRngRequest; |
| 22585 | } |
| 22586 | inline void OpRequest::set_has_rng_request() { |
| 22587 | _oneof_case_[0] = kRngRequest; |
| 22588 | } |
| 22589 | inline void OpRequest::clear_rng_request() { |
| 22590 | if (has_rng_request()) { |
| 22591 | if (GetArenaNoVirtual() == NULL) { |
| 22592 | delete op_.rng_request_; |
| 22593 | } |
| 22594 | clear_has_op(); |
| 22595 | } |
| 22596 | } |
| 22597 | inline ::xla::RngRequest* OpRequest::release_rng_request() { |
| 22598 | // @@protoc_insertion_point(field_release:xla.OpRequest.rng_request) |
| 22599 | if (has_rng_request()) { |
| 22600 | clear_has_op(); |
| 22601 | ::xla::RngRequest* temp = op_.rng_request_; |
| 22602 | if (GetArenaNoVirtual() != NULL) { |
| 22603 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22604 | } |
| 22605 | op_.rng_request_ = NULL; |
| 22606 | return temp; |
| 22607 | } else { |
| 22608 | return NULL; |
| 22609 | } |
| 22610 | } |
| 22611 | inline const ::xla::RngRequest& OpRequest::rng_request() const { |
| 22612 | // @@protoc_insertion_point(field_get:xla.OpRequest.rng_request) |
| 22613 | return has_rng_request() |
| 22614 | ? *op_.rng_request_ |
| 22615 | : *reinterpret_cast< ::xla::RngRequest*>(&::xla::_RngRequest_default_instance_); |
| 22616 | } |
| 22617 | inline ::xla::RngRequest* OpRequest::unsafe_arena_release_rng_request() { |
| 22618 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.rng_request) |
| 22619 | if (has_rng_request()) { |
| 22620 | clear_has_op(); |
| 22621 | ::xla::RngRequest* temp = op_.rng_request_; |
| 22622 | op_.rng_request_ = NULL; |
| 22623 | return temp; |
| 22624 | } else { |
| 22625 | return NULL; |
| 22626 | } |
| 22627 | } |
| 22628 | inline void OpRequest::unsafe_arena_set_allocated_rng_request(::xla::RngRequest* rng_request) { |
| 22629 | clear_op(); |
| 22630 | if (rng_request) { |
| 22631 | set_has_rng_request(); |
| 22632 | op_.rng_request_ = rng_request; |
| 22633 | } |
| 22634 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.rng_request) |
| 22635 | } |
| 22636 | inline ::xla::RngRequest* OpRequest::mutable_rng_request() { |
| 22637 | if (!has_rng_request()) { |
| 22638 | clear_op(); |
| 22639 | set_has_rng_request(); |
| 22640 | op_.rng_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::RngRequest >( |
| 22641 | GetArenaNoVirtual()); |
| 22642 | } |
| 22643 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.rng_request) |
| 22644 | return op_.rng_request_; |
| 22645 | } |
| 22646 | |
| 22647 | // .xla.SelectAndScatterRequest select_and_scatter_request = 23; |
| 22648 | inline bool OpRequest::has_select_and_scatter_request() const { |
| 22649 | return op_case() == kSelectAndScatterRequest; |
| 22650 | } |
| 22651 | inline void OpRequest::set_has_select_and_scatter_request() { |
| 22652 | _oneof_case_[0] = kSelectAndScatterRequest; |
| 22653 | } |
| 22654 | inline void OpRequest::clear_select_and_scatter_request() { |
| 22655 | if (has_select_and_scatter_request()) { |
| 22656 | if (GetArenaNoVirtual() == NULL) { |
| 22657 | delete op_.select_and_scatter_request_; |
| 22658 | } |
| 22659 | clear_has_op(); |
| 22660 | } |
| 22661 | } |
| 22662 | inline ::xla::SelectAndScatterRequest* OpRequest::release_select_and_scatter_request() { |
| 22663 | // @@protoc_insertion_point(field_release:xla.OpRequest.select_and_scatter_request) |
| 22664 | if (has_select_and_scatter_request()) { |
| 22665 | clear_has_op(); |
| 22666 | ::xla::SelectAndScatterRequest* temp = op_.select_and_scatter_request_; |
| 22667 | if (GetArenaNoVirtual() != NULL) { |
| 22668 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22669 | } |
| 22670 | op_.select_and_scatter_request_ = NULL; |
| 22671 | return temp; |
| 22672 | } else { |
| 22673 | return NULL; |
| 22674 | } |
| 22675 | } |
| 22676 | inline const ::xla::SelectAndScatterRequest& OpRequest::select_and_scatter_request() const { |
| 22677 | // @@protoc_insertion_point(field_get:xla.OpRequest.select_and_scatter_request) |
| 22678 | return has_select_and_scatter_request() |
| 22679 | ? *op_.select_and_scatter_request_ |
| 22680 | : *reinterpret_cast< ::xla::SelectAndScatterRequest*>(&::xla::_SelectAndScatterRequest_default_instance_); |
| 22681 | } |
| 22682 | inline ::xla::SelectAndScatterRequest* OpRequest::unsafe_arena_release_select_and_scatter_request() { |
| 22683 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.select_and_scatter_request) |
| 22684 | if (has_select_and_scatter_request()) { |
| 22685 | clear_has_op(); |
| 22686 | ::xla::SelectAndScatterRequest* temp = op_.select_and_scatter_request_; |
| 22687 | op_.select_and_scatter_request_ = NULL; |
| 22688 | return temp; |
| 22689 | } else { |
| 22690 | return NULL; |
| 22691 | } |
| 22692 | } |
| 22693 | inline void OpRequest::unsafe_arena_set_allocated_select_and_scatter_request(::xla::SelectAndScatterRequest* select_and_scatter_request) { |
| 22694 | clear_op(); |
| 22695 | if (select_and_scatter_request) { |
| 22696 | set_has_select_and_scatter_request(); |
| 22697 | op_.select_and_scatter_request_ = select_and_scatter_request; |
| 22698 | } |
| 22699 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.select_and_scatter_request) |
| 22700 | } |
| 22701 | inline ::xla::SelectAndScatterRequest* OpRequest::mutable_select_and_scatter_request() { |
| 22702 | if (!has_select_and_scatter_request()) { |
| 22703 | clear_op(); |
| 22704 | set_has_select_and_scatter_request(); |
| 22705 | op_.select_and_scatter_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::SelectAndScatterRequest >( |
| 22706 | GetArenaNoVirtual()); |
| 22707 | } |
| 22708 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.select_and_scatter_request) |
| 22709 | return op_.select_and_scatter_request_; |
| 22710 | } |
| 22711 | |
| 22712 | // .xla.SliceRequest slice_request = 24; |
| 22713 | inline bool OpRequest::has_slice_request() const { |
| 22714 | return op_case() == kSliceRequest; |
| 22715 | } |
| 22716 | inline void OpRequest::set_has_slice_request() { |
| 22717 | _oneof_case_[0] = kSliceRequest; |
| 22718 | } |
| 22719 | inline void OpRequest::clear_slice_request() { |
| 22720 | if (has_slice_request()) { |
| 22721 | if (GetArenaNoVirtual() == NULL) { |
| 22722 | delete op_.slice_request_; |
| 22723 | } |
| 22724 | clear_has_op(); |
| 22725 | } |
| 22726 | } |
| 22727 | inline ::xla::SliceRequest* OpRequest::release_slice_request() { |
| 22728 | // @@protoc_insertion_point(field_release:xla.OpRequest.slice_request) |
| 22729 | if (has_slice_request()) { |
| 22730 | clear_has_op(); |
| 22731 | ::xla::SliceRequest* temp = op_.slice_request_; |
| 22732 | if (GetArenaNoVirtual() != NULL) { |
| 22733 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22734 | } |
| 22735 | op_.slice_request_ = NULL; |
| 22736 | return temp; |
| 22737 | } else { |
| 22738 | return NULL; |
| 22739 | } |
| 22740 | } |
| 22741 | inline const ::xla::SliceRequest& OpRequest::slice_request() const { |
| 22742 | // @@protoc_insertion_point(field_get:xla.OpRequest.slice_request) |
| 22743 | return has_slice_request() |
| 22744 | ? *op_.slice_request_ |
| 22745 | : *reinterpret_cast< ::xla::SliceRequest*>(&::xla::_SliceRequest_default_instance_); |
| 22746 | } |
| 22747 | inline ::xla::SliceRequest* OpRequest::unsafe_arena_release_slice_request() { |
| 22748 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.slice_request) |
| 22749 | if (has_slice_request()) { |
| 22750 | clear_has_op(); |
| 22751 | ::xla::SliceRequest* temp = op_.slice_request_; |
| 22752 | op_.slice_request_ = NULL; |
| 22753 | return temp; |
| 22754 | } else { |
| 22755 | return NULL; |
| 22756 | } |
| 22757 | } |
| 22758 | inline void OpRequest::unsafe_arena_set_allocated_slice_request(::xla::SliceRequest* slice_request) { |
| 22759 | clear_op(); |
| 22760 | if (slice_request) { |
| 22761 | set_has_slice_request(); |
| 22762 | op_.slice_request_ = slice_request; |
| 22763 | } |
| 22764 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.slice_request) |
| 22765 | } |
| 22766 | inline ::xla::SliceRequest* OpRequest::mutable_slice_request() { |
| 22767 | if (!has_slice_request()) { |
| 22768 | clear_op(); |
| 22769 | set_has_slice_request(); |
| 22770 | op_.slice_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::SliceRequest >( |
| 22771 | GetArenaNoVirtual()); |
| 22772 | } |
| 22773 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.slice_request) |
| 22774 | return op_.slice_request_; |
| 22775 | } |
| 22776 | |
| 22777 | // .xla.TernaryOpRequest ternary_op_request = 25; |
| 22778 | inline bool OpRequest::has_ternary_op_request() const { |
| 22779 | return op_case() == kTernaryOpRequest; |
| 22780 | } |
| 22781 | inline void OpRequest::set_has_ternary_op_request() { |
| 22782 | _oneof_case_[0] = kTernaryOpRequest; |
| 22783 | } |
| 22784 | inline void OpRequest::clear_ternary_op_request() { |
| 22785 | if (has_ternary_op_request()) { |
| 22786 | if (GetArenaNoVirtual() == NULL) { |
| 22787 | delete op_.ternary_op_request_; |
| 22788 | } |
| 22789 | clear_has_op(); |
| 22790 | } |
| 22791 | } |
| 22792 | inline ::xla::TernaryOpRequest* OpRequest::release_ternary_op_request() { |
| 22793 | // @@protoc_insertion_point(field_release:xla.OpRequest.ternary_op_request) |
| 22794 | if (has_ternary_op_request()) { |
| 22795 | clear_has_op(); |
| 22796 | ::xla::TernaryOpRequest* temp = op_.ternary_op_request_; |
| 22797 | if (GetArenaNoVirtual() != NULL) { |
| 22798 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22799 | } |
| 22800 | op_.ternary_op_request_ = NULL; |
| 22801 | return temp; |
| 22802 | } else { |
| 22803 | return NULL; |
| 22804 | } |
| 22805 | } |
| 22806 | inline const ::xla::TernaryOpRequest& OpRequest::ternary_op_request() const { |
| 22807 | // @@protoc_insertion_point(field_get:xla.OpRequest.ternary_op_request) |
| 22808 | return has_ternary_op_request() |
| 22809 | ? *op_.ternary_op_request_ |
| 22810 | : *reinterpret_cast< ::xla::TernaryOpRequest*>(&::xla::_TernaryOpRequest_default_instance_); |
| 22811 | } |
| 22812 | inline ::xla::TernaryOpRequest* OpRequest::unsafe_arena_release_ternary_op_request() { |
| 22813 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.ternary_op_request) |
| 22814 | if (has_ternary_op_request()) { |
| 22815 | clear_has_op(); |
| 22816 | ::xla::TernaryOpRequest* temp = op_.ternary_op_request_; |
| 22817 | op_.ternary_op_request_ = NULL; |
| 22818 | return temp; |
| 22819 | } else { |
| 22820 | return NULL; |
| 22821 | } |
| 22822 | } |
| 22823 | inline void OpRequest::unsafe_arena_set_allocated_ternary_op_request(::xla::TernaryOpRequest* ternary_op_request) { |
| 22824 | clear_op(); |
| 22825 | if (ternary_op_request) { |
| 22826 | set_has_ternary_op_request(); |
| 22827 | op_.ternary_op_request_ = ternary_op_request; |
| 22828 | } |
| 22829 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.ternary_op_request) |
| 22830 | } |
| 22831 | inline ::xla::TernaryOpRequest* OpRequest::mutable_ternary_op_request() { |
| 22832 | if (!has_ternary_op_request()) { |
| 22833 | clear_op(); |
| 22834 | set_has_ternary_op_request(); |
| 22835 | op_.ternary_op_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::TernaryOpRequest >( |
| 22836 | GetArenaNoVirtual()); |
| 22837 | } |
| 22838 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.ternary_op_request) |
| 22839 | return op_.ternary_op_request_; |
| 22840 | } |
| 22841 | |
| 22842 | // .xla.TraceRequest trace_request = 26; |
| 22843 | inline bool OpRequest::has_trace_request() const { |
| 22844 | return op_case() == kTraceRequest; |
| 22845 | } |
| 22846 | inline void OpRequest::set_has_trace_request() { |
| 22847 | _oneof_case_[0] = kTraceRequest; |
| 22848 | } |
| 22849 | inline void OpRequest::clear_trace_request() { |
| 22850 | if (has_trace_request()) { |
| 22851 | if (GetArenaNoVirtual() == NULL) { |
| 22852 | delete op_.trace_request_; |
| 22853 | } |
| 22854 | clear_has_op(); |
| 22855 | } |
| 22856 | } |
| 22857 | inline ::xla::TraceRequest* OpRequest::release_trace_request() { |
| 22858 | // @@protoc_insertion_point(field_release:xla.OpRequest.trace_request) |
| 22859 | if (has_trace_request()) { |
| 22860 | clear_has_op(); |
| 22861 | ::xla::TraceRequest* temp = op_.trace_request_; |
| 22862 | if (GetArenaNoVirtual() != NULL) { |
| 22863 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22864 | } |
| 22865 | op_.trace_request_ = NULL; |
| 22866 | return temp; |
| 22867 | } else { |
| 22868 | return NULL; |
| 22869 | } |
| 22870 | } |
| 22871 | inline const ::xla::TraceRequest& OpRequest::trace_request() const { |
| 22872 | // @@protoc_insertion_point(field_get:xla.OpRequest.trace_request) |
| 22873 | return has_trace_request() |
| 22874 | ? *op_.trace_request_ |
| 22875 | : *reinterpret_cast< ::xla::TraceRequest*>(&::xla::_TraceRequest_default_instance_); |
| 22876 | } |
| 22877 | inline ::xla::TraceRequest* OpRequest::unsafe_arena_release_trace_request() { |
| 22878 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.trace_request) |
| 22879 | if (has_trace_request()) { |
| 22880 | clear_has_op(); |
| 22881 | ::xla::TraceRequest* temp = op_.trace_request_; |
| 22882 | op_.trace_request_ = NULL; |
| 22883 | return temp; |
| 22884 | } else { |
| 22885 | return NULL; |
| 22886 | } |
| 22887 | } |
| 22888 | inline void OpRequest::unsafe_arena_set_allocated_trace_request(::xla::TraceRequest* trace_request) { |
| 22889 | clear_op(); |
| 22890 | if (trace_request) { |
| 22891 | set_has_trace_request(); |
| 22892 | op_.trace_request_ = trace_request; |
| 22893 | } |
| 22894 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.trace_request) |
| 22895 | } |
| 22896 | inline ::xla::TraceRequest* OpRequest::mutable_trace_request() { |
| 22897 | if (!has_trace_request()) { |
| 22898 | clear_op(); |
| 22899 | set_has_trace_request(); |
| 22900 | op_.trace_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::TraceRequest >( |
| 22901 | GetArenaNoVirtual()); |
| 22902 | } |
| 22903 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.trace_request) |
| 22904 | return op_.trace_request_; |
| 22905 | } |
| 22906 | |
| 22907 | // .xla.TransposeRequest transpose_request = 34; |
| 22908 | inline bool OpRequest::has_transpose_request() const { |
| 22909 | return op_case() == kTransposeRequest; |
| 22910 | } |
| 22911 | inline void OpRequest::set_has_transpose_request() { |
| 22912 | _oneof_case_[0] = kTransposeRequest; |
| 22913 | } |
| 22914 | inline void OpRequest::clear_transpose_request() { |
| 22915 | if (has_transpose_request()) { |
| 22916 | if (GetArenaNoVirtual() == NULL) { |
| 22917 | delete op_.transpose_request_; |
| 22918 | } |
| 22919 | clear_has_op(); |
| 22920 | } |
| 22921 | } |
| 22922 | inline ::xla::TransposeRequest* OpRequest::release_transpose_request() { |
| 22923 | // @@protoc_insertion_point(field_release:xla.OpRequest.transpose_request) |
| 22924 | if (has_transpose_request()) { |
| 22925 | clear_has_op(); |
| 22926 | ::xla::TransposeRequest* temp = op_.transpose_request_; |
| 22927 | if (GetArenaNoVirtual() != NULL) { |
| 22928 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22929 | } |
| 22930 | op_.transpose_request_ = NULL; |
| 22931 | return temp; |
| 22932 | } else { |
| 22933 | return NULL; |
| 22934 | } |
| 22935 | } |
| 22936 | inline const ::xla::TransposeRequest& OpRequest::transpose_request() const { |
| 22937 | // @@protoc_insertion_point(field_get:xla.OpRequest.transpose_request) |
| 22938 | return has_transpose_request() |
| 22939 | ? *op_.transpose_request_ |
| 22940 | : *reinterpret_cast< ::xla::TransposeRequest*>(&::xla::_TransposeRequest_default_instance_); |
| 22941 | } |
| 22942 | inline ::xla::TransposeRequest* OpRequest::unsafe_arena_release_transpose_request() { |
| 22943 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.transpose_request) |
| 22944 | if (has_transpose_request()) { |
| 22945 | clear_has_op(); |
| 22946 | ::xla::TransposeRequest* temp = op_.transpose_request_; |
| 22947 | op_.transpose_request_ = NULL; |
| 22948 | return temp; |
| 22949 | } else { |
| 22950 | return NULL; |
| 22951 | } |
| 22952 | } |
| 22953 | inline void OpRequest::unsafe_arena_set_allocated_transpose_request(::xla::TransposeRequest* transpose_request) { |
| 22954 | clear_op(); |
| 22955 | if (transpose_request) { |
| 22956 | set_has_transpose_request(); |
| 22957 | op_.transpose_request_ = transpose_request; |
| 22958 | } |
| 22959 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.transpose_request) |
| 22960 | } |
| 22961 | inline ::xla::TransposeRequest* OpRequest::mutable_transpose_request() { |
| 22962 | if (!has_transpose_request()) { |
| 22963 | clear_op(); |
| 22964 | set_has_transpose_request(); |
| 22965 | op_.transpose_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::TransposeRequest >( |
| 22966 | GetArenaNoVirtual()); |
| 22967 | } |
| 22968 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.transpose_request) |
| 22969 | return op_.transpose_request_; |
| 22970 | } |
| 22971 | |
| 22972 | // .xla.UnaryOpRequest unary_op_request = 27; |
| 22973 | inline bool OpRequest::has_unary_op_request() const { |
| 22974 | return op_case() == kUnaryOpRequest; |
| 22975 | } |
| 22976 | inline void OpRequest::set_has_unary_op_request() { |
| 22977 | _oneof_case_[0] = kUnaryOpRequest; |
| 22978 | } |
| 22979 | inline void OpRequest::clear_unary_op_request() { |
| 22980 | if (has_unary_op_request()) { |
| 22981 | if (GetArenaNoVirtual() == NULL) { |
| 22982 | delete op_.unary_op_request_; |
| 22983 | } |
| 22984 | clear_has_op(); |
| 22985 | } |
| 22986 | } |
| 22987 | inline ::xla::UnaryOpRequest* OpRequest::release_unary_op_request() { |
| 22988 | // @@protoc_insertion_point(field_release:xla.OpRequest.unary_op_request) |
| 22989 | if (has_unary_op_request()) { |
| 22990 | clear_has_op(); |
| 22991 | ::xla::UnaryOpRequest* temp = op_.unary_op_request_; |
| 22992 | if (GetArenaNoVirtual() != NULL) { |
| 22993 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 22994 | } |
| 22995 | op_.unary_op_request_ = NULL; |
| 22996 | return temp; |
| 22997 | } else { |
| 22998 | return NULL; |
| 22999 | } |
| 23000 | } |
| 23001 | inline const ::xla::UnaryOpRequest& OpRequest::unary_op_request() const { |
| 23002 | // @@protoc_insertion_point(field_get:xla.OpRequest.unary_op_request) |
| 23003 | return has_unary_op_request() |
| 23004 | ? *op_.unary_op_request_ |
| 23005 | : *reinterpret_cast< ::xla::UnaryOpRequest*>(&::xla::_UnaryOpRequest_default_instance_); |
| 23006 | } |
| 23007 | inline ::xla::UnaryOpRequest* OpRequest::unsafe_arena_release_unary_op_request() { |
| 23008 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.unary_op_request) |
| 23009 | if (has_unary_op_request()) { |
| 23010 | clear_has_op(); |
| 23011 | ::xla::UnaryOpRequest* temp = op_.unary_op_request_; |
| 23012 | op_.unary_op_request_ = NULL; |
| 23013 | return temp; |
| 23014 | } else { |
| 23015 | return NULL; |
| 23016 | } |
| 23017 | } |
| 23018 | inline void OpRequest::unsafe_arena_set_allocated_unary_op_request(::xla::UnaryOpRequest* unary_op_request) { |
| 23019 | clear_op(); |
| 23020 | if (unary_op_request) { |
| 23021 | set_has_unary_op_request(); |
| 23022 | op_.unary_op_request_ = unary_op_request; |
| 23023 | } |
| 23024 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.unary_op_request) |
| 23025 | } |
| 23026 | inline ::xla::UnaryOpRequest* OpRequest::mutable_unary_op_request() { |
| 23027 | if (!has_unary_op_request()) { |
| 23028 | clear_op(); |
| 23029 | set_has_unary_op_request(); |
| 23030 | op_.unary_op_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::UnaryOpRequest >( |
| 23031 | GetArenaNoVirtual()); |
| 23032 | } |
| 23033 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.unary_op_request) |
| 23034 | return op_.unary_op_request_; |
| 23035 | } |
| 23036 | |
| 23037 | // .xla.VariadicOpRequest variadic_op_request = 28; |
| 23038 | inline bool OpRequest::has_variadic_op_request() const { |
| 23039 | return op_case() == kVariadicOpRequest; |
| 23040 | } |
| 23041 | inline void OpRequest::set_has_variadic_op_request() { |
| 23042 | _oneof_case_[0] = kVariadicOpRequest; |
| 23043 | } |
| 23044 | inline void OpRequest::clear_variadic_op_request() { |
| 23045 | if (has_variadic_op_request()) { |
| 23046 | if (GetArenaNoVirtual() == NULL) { |
| 23047 | delete op_.variadic_op_request_; |
| 23048 | } |
| 23049 | clear_has_op(); |
| 23050 | } |
| 23051 | } |
| 23052 | inline ::xla::VariadicOpRequest* OpRequest::release_variadic_op_request() { |
| 23053 | // @@protoc_insertion_point(field_release:xla.OpRequest.variadic_op_request) |
| 23054 | if (has_variadic_op_request()) { |
| 23055 | clear_has_op(); |
| 23056 | ::xla::VariadicOpRequest* temp = op_.variadic_op_request_; |
| 23057 | if (GetArenaNoVirtual() != NULL) { |
| 23058 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23059 | } |
| 23060 | op_.variadic_op_request_ = NULL; |
| 23061 | return temp; |
| 23062 | } else { |
| 23063 | return NULL; |
| 23064 | } |
| 23065 | } |
| 23066 | inline const ::xla::VariadicOpRequest& OpRequest::variadic_op_request() const { |
| 23067 | // @@protoc_insertion_point(field_get:xla.OpRequest.variadic_op_request) |
| 23068 | return has_variadic_op_request() |
| 23069 | ? *op_.variadic_op_request_ |
| 23070 | : *reinterpret_cast< ::xla::VariadicOpRequest*>(&::xla::_VariadicOpRequest_default_instance_); |
| 23071 | } |
| 23072 | inline ::xla::VariadicOpRequest* OpRequest::unsafe_arena_release_variadic_op_request() { |
| 23073 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.variadic_op_request) |
| 23074 | if (has_variadic_op_request()) { |
| 23075 | clear_has_op(); |
| 23076 | ::xla::VariadicOpRequest* temp = op_.variadic_op_request_; |
| 23077 | op_.variadic_op_request_ = NULL; |
| 23078 | return temp; |
| 23079 | } else { |
| 23080 | return NULL; |
| 23081 | } |
| 23082 | } |
| 23083 | inline void OpRequest::unsafe_arena_set_allocated_variadic_op_request(::xla::VariadicOpRequest* variadic_op_request) { |
| 23084 | clear_op(); |
| 23085 | if (variadic_op_request) { |
| 23086 | set_has_variadic_op_request(); |
| 23087 | op_.variadic_op_request_ = variadic_op_request; |
| 23088 | } |
| 23089 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.variadic_op_request) |
| 23090 | } |
| 23091 | inline ::xla::VariadicOpRequest* OpRequest::mutable_variadic_op_request() { |
| 23092 | if (!has_variadic_op_request()) { |
| 23093 | clear_op(); |
| 23094 | set_has_variadic_op_request(); |
| 23095 | op_.variadic_op_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::VariadicOpRequest >( |
| 23096 | GetArenaNoVirtual()); |
| 23097 | } |
| 23098 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.variadic_op_request) |
| 23099 | return op_.variadic_op_request_; |
| 23100 | } |
| 23101 | |
| 23102 | // .xla.WhileRequest while_request = 29; |
| 23103 | inline bool OpRequest::has_while_request() const { |
| 23104 | return op_case() == kWhileRequest; |
| 23105 | } |
| 23106 | inline void OpRequest::set_has_while_request() { |
| 23107 | _oneof_case_[0] = kWhileRequest; |
| 23108 | } |
| 23109 | inline void OpRequest::clear_while_request() { |
| 23110 | if (has_while_request()) { |
| 23111 | if (GetArenaNoVirtual() == NULL) { |
| 23112 | delete op_.while_request_; |
| 23113 | } |
| 23114 | clear_has_op(); |
| 23115 | } |
| 23116 | } |
| 23117 | inline ::xla::WhileRequest* OpRequest::release_while_request() { |
| 23118 | // @@protoc_insertion_point(field_release:xla.OpRequest.while_request) |
| 23119 | if (has_while_request()) { |
| 23120 | clear_has_op(); |
| 23121 | ::xla::WhileRequest* temp = op_.while_request_; |
| 23122 | if (GetArenaNoVirtual() != NULL) { |
| 23123 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23124 | } |
| 23125 | op_.while_request_ = NULL; |
| 23126 | return temp; |
| 23127 | } else { |
| 23128 | return NULL; |
| 23129 | } |
| 23130 | } |
| 23131 | inline const ::xla::WhileRequest& OpRequest::while_request() const { |
| 23132 | // @@protoc_insertion_point(field_get:xla.OpRequest.while_request) |
| 23133 | return has_while_request() |
| 23134 | ? *op_.while_request_ |
| 23135 | : *reinterpret_cast< ::xla::WhileRequest*>(&::xla::_WhileRequest_default_instance_); |
| 23136 | } |
| 23137 | inline ::xla::WhileRequest* OpRequest::unsafe_arena_release_while_request() { |
| 23138 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.while_request) |
| 23139 | if (has_while_request()) { |
| 23140 | clear_has_op(); |
| 23141 | ::xla::WhileRequest* temp = op_.while_request_; |
| 23142 | op_.while_request_ = NULL; |
| 23143 | return temp; |
| 23144 | } else { |
| 23145 | return NULL; |
| 23146 | } |
| 23147 | } |
| 23148 | inline void OpRequest::unsafe_arena_set_allocated_while_request(::xla::WhileRequest* while_request) { |
| 23149 | clear_op(); |
| 23150 | if (while_request) { |
| 23151 | set_has_while_request(); |
| 23152 | op_.while_request_ = while_request; |
| 23153 | } |
| 23154 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.while_request) |
| 23155 | } |
| 23156 | inline ::xla::WhileRequest* OpRequest::mutable_while_request() { |
| 23157 | if (!has_while_request()) { |
| 23158 | clear_op(); |
| 23159 | set_has_while_request(); |
| 23160 | op_.while_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::WhileRequest >( |
| 23161 | GetArenaNoVirtual()); |
| 23162 | } |
| 23163 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.while_request) |
| 23164 | return op_.while_request_; |
| 23165 | } |
| 23166 | |
| 23167 | // .xla.SendRequest send_request = 30; |
| 23168 | inline bool OpRequest::has_send_request() const { |
| 23169 | return op_case() == kSendRequest; |
| 23170 | } |
| 23171 | inline void OpRequest::set_has_send_request() { |
| 23172 | _oneof_case_[0] = kSendRequest; |
| 23173 | } |
| 23174 | inline void OpRequest::clear_send_request() { |
| 23175 | if (has_send_request()) { |
| 23176 | if (GetArenaNoVirtual() == NULL) { |
| 23177 | delete op_.send_request_; |
| 23178 | } |
| 23179 | clear_has_op(); |
| 23180 | } |
| 23181 | } |
| 23182 | inline ::xla::SendRequest* OpRequest::release_send_request() { |
| 23183 | // @@protoc_insertion_point(field_release:xla.OpRequest.send_request) |
| 23184 | if (has_send_request()) { |
| 23185 | clear_has_op(); |
| 23186 | ::xla::SendRequest* temp = op_.send_request_; |
| 23187 | if (GetArenaNoVirtual() != NULL) { |
| 23188 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23189 | } |
| 23190 | op_.send_request_ = NULL; |
| 23191 | return temp; |
| 23192 | } else { |
| 23193 | return NULL; |
| 23194 | } |
| 23195 | } |
| 23196 | inline const ::xla::SendRequest& OpRequest::send_request() const { |
| 23197 | // @@protoc_insertion_point(field_get:xla.OpRequest.send_request) |
| 23198 | return has_send_request() |
| 23199 | ? *op_.send_request_ |
| 23200 | : *reinterpret_cast< ::xla::SendRequest*>(&::xla::_SendRequest_default_instance_); |
| 23201 | } |
| 23202 | inline ::xla::SendRequest* OpRequest::unsafe_arena_release_send_request() { |
| 23203 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.send_request) |
| 23204 | if (has_send_request()) { |
| 23205 | clear_has_op(); |
| 23206 | ::xla::SendRequest* temp = op_.send_request_; |
| 23207 | op_.send_request_ = NULL; |
| 23208 | return temp; |
| 23209 | } else { |
| 23210 | return NULL; |
| 23211 | } |
| 23212 | } |
| 23213 | inline void OpRequest::unsafe_arena_set_allocated_send_request(::xla::SendRequest* send_request) { |
| 23214 | clear_op(); |
| 23215 | if (send_request) { |
| 23216 | set_has_send_request(); |
| 23217 | op_.send_request_ = send_request; |
| 23218 | } |
| 23219 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.send_request) |
| 23220 | } |
| 23221 | inline ::xla::SendRequest* OpRequest::mutable_send_request() { |
| 23222 | if (!has_send_request()) { |
| 23223 | clear_op(); |
| 23224 | set_has_send_request(); |
| 23225 | op_.send_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::SendRequest >( |
| 23226 | GetArenaNoVirtual()); |
| 23227 | } |
| 23228 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.send_request) |
| 23229 | return op_.send_request_; |
| 23230 | } |
| 23231 | |
| 23232 | // .xla.RecvRequest recv_request = 31; |
| 23233 | inline bool OpRequest::has_recv_request() const { |
| 23234 | return op_case() == kRecvRequest; |
| 23235 | } |
| 23236 | inline void OpRequest::set_has_recv_request() { |
| 23237 | _oneof_case_[0] = kRecvRequest; |
| 23238 | } |
| 23239 | inline void OpRequest::clear_recv_request() { |
| 23240 | if (has_recv_request()) { |
| 23241 | if (GetArenaNoVirtual() == NULL) { |
| 23242 | delete op_.recv_request_; |
| 23243 | } |
| 23244 | clear_has_op(); |
| 23245 | } |
| 23246 | } |
| 23247 | inline ::xla::RecvRequest* OpRequest::release_recv_request() { |
| 23248 | // @@protoc_insertion_point(field_release:xla.OpRequest.recv_request) |
| 23249 | if (has_recv_request()) { |
| 23250 | clear_has_op(); |
| 23251 | ::xla::RecvRequest* temp = op_.recv_request_; |
| 23252 | if (GetArenaNoVirtual() != NULL) { |
| 23253 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23254 | } |
| 23255 | op_.recv_request_ = NULL; |
| 23256 | return temp; |
| 23257 | } else { |
| 23258 | return NULL; |
| 23259 | } |
| 23260 | } |
| 23261 | inline const ::xla::RecvRequest& OpRequest::recv_request() const { |
| 23262 | // @@protoc_insertion_point(field_get:xla.OpRequest.recv_request) |
| 23263 | return has_recv_request() |
| 23264 | ? *op_.recv_request_ |
| 23265 | : *reinterpret_cast< ::xla::RecvRequest*>(&::xla::_RecvRequest_default_instance_); |
| 23266 | } |
| 23267 | inline ::xla::RecvRequest* OpRequest::unsafe_arena_release_recv_request() { |
| 23268 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.recv_request) |
| 23269 | if (has_recv_request()) { |
| 23270 | clear_has_op(); |
| 23271 | ::xla::RecvRequest* temp = op_.recv_request_; |
| 23272 | op_.recv_request_ = NULL; |
| 23273 | return temp; |
| 23274 | } else { |
| 23275 | return NULL; |
| 23276 | } |
| 23277 | } |
| 23278 | inline void OpRequest::unsafe_arena_set_allocated_recv_request(::xla::RecvRequest* recv_request) { |
| 23279 | clear_op(); |
| 23280 | if (recv_request) { |
| 23281 | set_has_recv_request(); |
| 23282 | op_.recv_request_ = recv_request; |
| 23283 | } |
| 23284 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.recv_request) |
| 23285 | } |
| 23286 | inline ::xla::RecvRequest* OpRequest::mutable_recv_request() { |
| 23287 | if (!has_recv_request()) { |
| 23288 | clear_op(); |
| 23289 | set_has_recv_request(); |
| 23290 | op_.recv_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::RecvRequest >( |
| 23291 | GetArenaNoVirtual()); |
| 23292 | } |
| 23293 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.recv_request) |
| 23294 | return op_.recv_request_; |
| 23295 | } |
| 23296 | |
| 23297 | // .xla.OutfeedRequest outfeed_request = 32; |
| 23298 | inline bool OpRequest::has_outfeed_request() const { |
| 23299 | return op_case() == kOutfeedRequest; |
| 23300 | } |
| 23301 | inline void OpRequest::set_has_outfeed_request() { |
| 23302 | _oneof_case_[0] = kOutfeedRequest; |
| 23303 | } |
| 23304 | inline void OpRequest::clear_outfeed_request() { |
| 23305 | if (has_outfeed_request()) { |
| 23306 | if (GetArenaNoVirtual() == NULL) { |
| 23307 | delete op_.outfeed_request_; |
| 23308 | } |
| 23309 | clear_has_op(); |
| 23310 | } |
| 23311 | } |
| 23312 | inline ::xla::OutfeedRequest* OpRequest::release_outfeed_request() { |
| 23313 | // @@protoc_insertion_point(field_release:xla.OpRequest.outfeed_request) |
| 23314 | if (has_outfeed_request()) { |
| 23315 | clear_has_op(); |
| 23316 | ::xla::OutfeedRequest* temp = op_.outfeed_request_; |
| 23317 | if (GetArenaNoVirtual() != NULL) { |
| 23318 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23319 | } |
| 23320 | op_.outfeed_request_ = NULL; |
| 23321 | return temp; |
| 23322 | } else { |
| 23323 | return NULL; |
| 23324 | } |
| 23325 | } |
| 23326 | inline const ::xla::OutfeedRequest& OpRequest::outfeed_request() const { |
| 23327 | // @@protoc_insertion_point(field_get:xla.OpRequest.outfeed_request) |
| 23328 | return has_outfeed_request() |
| 23329 | ? *op_.outfeed_request_ |
| 23330 | : *reinterpret_cast< ::xla::OutfeedRequest*>(&::xla::_OutfeedRequest_default_instance_); |
| 23331 | } |
| 23332 | inline ::xla::OutfeedRequest* OpRequest::unsafe_arena_release_outfeed_request() { |
| 23333 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.outfeed_request) |
| 23334 | if (has_outfeed_request()) { |
| 23335 | clear_has_op(); |
| 23336 | ::xla::OutfeedRequest* temp = op_.outfeed_request_; |
| 23337 | op_.outfeed_request_ = NULL; |
| 23338 | return temp; |
| 23339 | } else { |
| 23340 | return NULL; |
| 23341 | } |
| 23342 | } |
| 23343 | inline void OpRequest::unsafe_arena_set_allocated_outfeed_request(::xla::OutfeedRequest* outfeed_request) { |
| 23344 | clear_op(); |
| 23345 | if (outfeed_request) { |
| 23346 | set_has_outfeed_request(); |
| 23347 | op_.outfeed_request_ = outfeed_request; |
| 23348 | } |
| 23349 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.outfeed_request) |
| 23350 | } |
| 23351 | inline ::xla::OutfeedRequest* OpRequest::mutable_outfeed_request() { |
| 23352 | if (!has_outfeed_request()) { |
| 23353 | clear_op(); |
| 23354 | set_has_outfeed_request(); |
| 23355 | op_.outfeed_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::OutfeedRequest >( |
| 23356 | GetArenaNoVirtual()); |
| 23357 | } |
| 23358 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.outfeed_request) |
| 23359 | return op_.outfeed_request_; |
| 23360 | } |
| 23361 | |
| 23362 | // .xla.BatchNormTrainingRequest batch_norm_training_request = 35; |
| 23363 | inline bool OpRequest::has_batch_norm_training_request() const { |
| 23364 | return op_case() == kBatchNormTrainingRequest; |
| 23365 | } |
| 23366 | inline void OpRequest::set_has_batch_norm_training_request() { |
| 23367 | _oneof_case_[0] = kBatchNormTrainingRequest; |
| 23368 | } |
| 23369 | inline void OpRequest::clear_batch_norm_training_request() { |
| 23370 | if (has_batch_norm_training_request()) { |
| 23371 | if (GetArenaNoVirtual() == NULL) { |
| 23372 | delete op_.batch_norm_training_request_; |
| 23373 | } |
| 23374 | clear_has_op(); |
| 23375 | } |
| 23376 | } |
| 23377 | inline ::xla::BatchNormTrainingRequest* OpRequest::release_batch_norm_training_request() { |
| 23378 | // @@protoc_insertion_point(field_release:xla.OpRequest.batch_norm_training_request) |
| 23379 | if (has_batch_norm_training_request()) { |
| 23380 | clear_has_op(); |
| 23381 | ::xla::BatchNormTrainingRequest* temp = op_.batch_norm_training_request_; |
| 23382 | if (GetArenaNoVirtual() != NULL) { |
| 23383 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23384 | } |
| 23385 | op_.batch_norm_training_request_ = NULL; |
| 23386 | return temp; |
| 23387 | } else { |
| 23388 | return NULL; |
| 23389 | } |
| 23390 | } |
| 23391 | inline const ::xla::BatchNormTrainingRequest& OpRequest::batch_norm_training_request() const { |
| 23392 | // @@protoc_insertion_point(field_get:xla.OpRequest.batch_norm_training_request) |
| 23393 | return has_batch_norm_training_request() |
| 23394 | ? *op_.batch_norm_training_request_ |
| 23395 | : *reinterpret_cast< ::xla::BatchNormTrainingRequest*>(&::xla::_BatchNormTrainingRequest_default_instance_); |
| 23396 | } |
| 23397 | inline ::xla::BatchNormTrainingRequest* OpRequest::unsafe_arena_release_batch_norm_training_request() { |
| 23398 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.batch_norm_training_request) |
| 23399 | if (has_batch_norm_training_request()) { |
| 23400 | clear_has_op(); |
| 23401 | ::xla::BatchNormTrainingRequest* temp = op_.batch_norm_training_request_; |
| 23402 | op_.batch_norm_training_request_ = NULL; |
| 23403 | return temp; |
| 23404 | } else { |
| 23405 | return NULL; |
| 23406 | } |
| 23407 | } |
| 23408 | inline void OpRequest::unsafe_arena_set_allocated_batch_norm_training_request(::xla::BatchNormTrainingRequest* batch_norm_training_request) { |
| 23409 | clear_op(); |
| 23410 | if (batch_norm_training_request) { |
| 23411 | set_has_batch_norm_training_request(); |
| 23412 | op_.batch_norm_training_request_ = batch_norm_training_request; |
| 23413 | } |
| 23414 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.batch_norm_training_request) |
| 23415 | } |
| 23416 | inline ::xla::BatchNormTrainingRequest* OpRequest::mutable_batch_norm_training_request() { |
| 23417 | if (!has_batch_norm_training_request()) { |
| 23418 | clear_op(); |
| 23419 | set_has_batch_norm_training_request(); |
| 23420 | op_.batch_norm_training_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::BatchNormTrainingRequest >( |
| 23421 | GetArenaNoVirtual()); |
| 23422 | } |
| 23423 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.batch_norm_training_request) |
| 23424 | return op_.batch_norm_training_request_; |
| 23425 | } |
| 23426 | |
| 23427 | // .xla.BatchNormGradRequest batch_norm_grad_request = 37; |
| 23428 | inline bool OpRequest::has_batch_norm_grad_request() const { |
| 23429 | return op_case() == kBatchNormGradRequest; |
| 23430 | } |
| 23431 | inline void OpRequest::set_has_batch_norm_grad_request() { |
| 23432 | _oneof_case_[0] = kBatchNormGradRequest; |
| 23433 | } |
| 23434 | inline void OpRequest::clear_batch_norm_grad_request() { |
| 23435 | if (has_batch_norm_grad_request()) { |
| 23436 | if (GetArenaNoVirtual() == NULL) { |
| 23437 | delete op_.batch_norm_grad_request_; |
| 23438 | } |
| 23439 | clear_has_op(); |
| 23440 | } |
| 23441 | } |
| 23442 | inline ::xla::BatchNormGradRequest* OpRequest::release_batch_norm_grad_request() { |
| 23443 | // @@protoc_insertion_point(field_release:xla.OpRequest.batch_norm_grad_request) |
| 23444 | if (has_batch_norm_grad_request()) { |
| 23445 | clear_has_op(); |
| 23446 | ::xla::BatchNormGradRequest* temp = op_.batch_norm_grad_request_; |
| 23447 | if (GetArenaNoVirtual() != NULL) { |
| 23448 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23449 | } |
| 23450 | op_.batch_norm_grad_request_ = NULL; |
| 23451 | return temp; |
| 23452 | } else { |
| 23453 | return NULL; |
| 23454 | } |
| 23455 | } |
| 23456 | inline const ::xla::BatchNormGradRequest& OpRequest::batch_norm_grad_request() const { |
| 23457 | // @@protoc_insertion_point(field_get:xla.OpRequest.batch_norm_grad_request) |
| 23458 | return has_batch_norm_grad_request() |
| 23459 | ? *op_.batch_norm_grad_request_ |
| 23460 | : *reinterpret_cast< ::xla::BatchNormGradRequest*>(&::xla::_BatchNormGradRequest_default_instance_); |
| 23461 | } |
| 23462 | inline ::xla::BatchNormGradRequest* OpRequest::unsafe_arena_release_batch_norm_grad_request() { |
| 23463 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.batch_norm_grad_request) |
| 23464 | if (has_batch_norm_grad_request()) { |
| 23465 | clear_has_op(); |
| 23466 | ::xla::BatchNormGradRequest* temp = op_.batch_norm_grad_request_; |
| 23467 | op_.batch_norm_grad_request_ = NULL; |
| 23468 | return temp; |
| 23469 | } else { |
| 23470 | return NULL; |
| 23471 | } |
| 23472 | } |
| 23473 | inline void OpRequest::unsafe_arena_set_allocated_batch_norm_grad_request(::xla::BatchNormGradRequest* batch_norm_grad_request) { |
| 23474 | clear_op(); |
| 23475 | if (batch_norm_grad_request) { |
| 23476 | set_has_batch_norm_grad_request(); |
| 23477 | op_.batch_norm_grad_request_ = batch_norm_grad_request; |
| 23478 | } |
| 23479 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.batch_norm_grad_request) |
| 23480 | } |
| 23481 | inline ::xla::BatchNormGradRequest* OpRequest::mutable_batch_norm_grad_request() { |
| 23482 | if (!has_batch_norm_grad_request()) { |
| 23483 | clear_op(); |
| 23484 | set_has_batch_norm_grad_request(); |
| 23485 | op_.batch_norm_grad_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::BatchNormGradRequest >( |
| 23486 | GetArenaNoVirtual()); |
| 23487 | } |
| 23488 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.batch_norm_grad_request) |
| 23489 | return op_.batch_norm_grad_request_; |
| 23490 | } |
| 23491 | |
| 23492 | // .xla.BatchNormInferenceRequest batch_norm_inference_request = 38; |
| 23493 | inline bool OpRequest::has_batch_norm_inference_request() const { |
| 23494 | return op_case() == kBatchNormInferenceRequest; |
| 23495 | } |
| 23496 | inline void OpRequest::set_has_batch_norm_inference_request() { |
| 23497 | _oneof_case_[0] = kBatchNormInferenceRequest; |
| 23498 | } |
| 23499 | inline void OpRequest::clear_batch_norm_inference_request() { |
| 23500 | if (has_batch_norm_inference_request()) { |
| 23501 | if (GetArenaNoVirtual() == NULL) { |
| 23502 | delete op_.batch_norm_inference_request_; |
| 23503 | } |
| 23504 | clear_has_op(); |
| 23505 | } |
| 23506 | } |
| 23507 | inline ::xla::BatchNormInferenceRequest* OpRequest::release_batch_norm_inference_request() { |
| 23508 | // @@protoc_insertion_point(field_release:xla.OpRequest.batch_norm_inference_request) |
| 23509 | if (has_batch_norm_inference_request()) { |
| 23510 | clear_has_op(); |
| 23511 | ::xla::BatchNormInferenceRequest* temp = op_.batch_norm_inference_request_; |
| 23512 | if (GetArenaNoVirtual() != NULL) { |
| 23513 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23514 | } |
| 23515 | op_.batch_norm_inference_request_ = NULL; |
| 23516 | return temp; |
| 23517 | } else { |
| 23518 | return NULL; |
| 23519 | } |
| 23520 | } |
| 23521 | inline const ::xla::BatchNormInferenceRequest& OpRequest::batch_norm_inference_request() const { |
| 23522 | // @@protoc_insertion_point(field_get:xla.OpRequest.batch_norm_inference_request) |
| 23523 | return has_batch_norm_inference_request() |
| 23524 | ? *op_.batch_norm_inference_request_ |
| 23525 | : *reinterpret_cast< ::xla::BatchNormInferenceRequest*>(&::xla::_BatchNormInferenceRequest_default_instance_); |
| 23526 | } |
| 23527 | inline ::xla::BatchNormInferenceRequest* OpRequest::unsafe_arena_release_batch_norm_inference_request() { |
| 23528 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.batch_norm_inference_request) |
| 23529 | if (has_batch_norm_inference_request()) { |
| 23530 | clear_has_op(); |
| 23531 | ::xla::BatchNormInferenceRequest* temp = op_.batch_norm_inference_request_; |
| 23532 | op_.batch_norm_inference_request_ = NULL; |
| 23533 | return temp; |
| 23534 | } else { |
| 23535 | return NULL; |
| 23536 | } |
| 23537 | } |
| 23538 | inline void OpRequest::unsafe_arena_set_allocated_batch_norm_inference_request(::xla::BatchNormInferenceRequest* batch_norm_inference_request) { |
| 23539 | clear_op(); |
| 23540 | if (batch_norm_inference_request) { |
| 23541 | set_has_batch_norm_inference_request(); |
| 23542 | op_.batch_norm_inference_request_ = batch_norm_inference_request; |
| 23543 | } |
| 23544 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.batch_norm_inference_request) |
| 23545 | } |
| 23546 | inline ::xla::BatchNormInferenceRequest* OpRequest::mutable_batch_norm_inference_request() { |
| 23547 | if (!has_batch_norm_inference_request()) { |
| 23548 | clear_op(); |
| 23549 | set_has_batch_norm_inference_request(); |
| 23550 | op_.batch_norm_inference_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::BatchNormInferenceRequest >( |
| 23551 | GetArenaNoVirtual()); |
| 23552 | } |
| 23553 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.batch_norm_inference_request) |
| 23554 | return op_.batch_norm_inference_request_; |
| 23555 | } |
| 23556 | |
| 23557 | // .xla.FftRequest fft_request = 41; |
| 23558 | inline bool OpRequest::has_fft_request() const { |
| 23559 | return op_case() == kFftRequest; |
| 23560 | } |
| 23561 | inline void OpRequest::set_has_fft_request() { |
| 23562 | _oneof_case_[0] = kFftRequest; |
| 23563 | } |
| 23564 | inline void OpRequest::clear_fft_request() { |
| 23565 | if (has_fft_request()) { |
| 23566 | if (GetArenaNoVirtual() == NULL) { |
| 23567 | delete op_.fft_request_; |
| 23568 | } |
| 23569 | clear_has_op(); |
| 23570 | } |
| 23571 | } |
| 23572 | inline ::xla::FftRequest* OpRequest::release_fft_request() { |
| 23573 | // @@protoc_insertion_point(field_release:xla.OpRequest.fft_request) |
| 23574 | if (has_fft_request()) { |
| 23575 | clear_has_op(); |
| 23576 | ::xla::FftRequest* temp = op_.fft_request_; |
| 23577 | if (GetArenaNoVirtual() != NULL) { |
| 23578 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23579 | } |
| 23580 | op_.fft_request_ = NULL; |
| 23581 | return temp; |
| 23582 | } else { |
| 23583 | return NULL; |
| 23584 | } |
| 23585 | } |
| 23586 | inline const ::xla::FftRequest& OpRequest::fft_request() const { |
| 23587 | // @@protoc_insertion_point(field_get:xla.OpRequest.fft_request) |
| 23588 | return has_fft_request() |
| 23589 | ? *op_.fft_request_ |
| 23590 | : *reinterpret_cast< ::xla::FftRequest*>(&::xla::_FftRequest_default_instance_); |
| 23591 | } |
| 23592 | inline ::xla::FftRequest* OpRequest::unsafe_arena_release_fft_request() { |
| 23593 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.fft_request) |
| 23594 | if (has_fft_request()) { |
| 23595 | clear_has_op(); |
| 23596 | ::xla::FftRequest* temp = op_.fft_request_; |
| 23597 | op_.fft_request_ = NULL; |
| 23598 | return temp; |
| 23599 | } else { |
| 23600 | return NULL; |
| 23601 | } |
| 23602 | } |
| 23603 | inline void OpRequest::unsafe_arena_set_allocated_fft_request(::xla::FftRequest* fft_request) { |
| 23604 | clear_op(); |
| 23605 | if (fft_request) { |
| 23606 | set_has_fft_request(); |
| 23607 | op_.fft_request_ = fft_request; |
| 23608 | } |
| 23609 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.fft_request) |
| 23610 | } |
| 23611 | inline ::xla::FftRequest* OpRequest::mutable_fft_request() { |
| 23612 | if (!has_fft_request()) { |
| 23613 | clear_op(); |
| 23614 | set_has_fft_request(); |
| 23615 | op_.fft_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::FftRequest >( |
| 23616 | GetArenaNoVirtual()); |
| 23617 | } |
| 23618 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.fft_request) |
| 23619 | return op_.fft_request_; |
| 23620 | } |
| 23621 | |
| 23622 | // .xla.ConvertRequest bitcast_convert_request = 42; |
| 23623 | inline bool OpRequest::has_bitcast_convert_request() const { |
| 23624 | return op_case() == kBitcastConvertRequest; |
| 23625 | } |
| 23626 | inline void OpRequest::set_has_bitcast_convert_request() { |
| 23627 | _oneof_case_[0] = kBitcastConvertRequest; |
| 23628 | } |
| 23629 | inline void OpRequest::clear_bitcast_convert_request() { |
| 23630 | if (has_bitcast_convert_request()) { |
| 23631 | if (GetArenaNoVirtual() == NULL) { |
| 23632 | delete op_.bitcast_convert_request_; |
| 23633 | } |
| 23634 | clear_has_op(); |
| 23635 | } |
| 23636 | } |
| 23637 | inline ::xla::ConvertRequest* OpRequest::release_bitcast_convert_request() { |
| 23638 | // @@protoc_insertion_point(field_release:xla.OpRequest.bitcast_convert_request) |
| 23639 | if (has_bitcast_convert_request()) { |
| 23640 | clear_has_op(); |
| 23641 | ::xla::ConvertRequest* temp = op_.bitcast_convert_request_; |
| 23642 | if (GetArenaNoVirtual() != NULL) { |
| 23643 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23644 | } |
| 23645 | op_.bitcast_convert_request_ = NULL; |
| 23646 | return temp; |
| 23647 | } else { |
| 23648 | return NULL; |
| 23649 | } |
| 23650 | } |
| 23651 | inline const ::xla::ConvertRequest& OpRequest::bitcast_convert_request() const { |
| 23652 | // @@protoc_insertion_point(field_get:xla.OpRequest.bitcast_convert_request) |
| 23653 | return has_bitcast_convert_request() |
| 23654 | ? *op_.bitcast_convert_request_ |
| 23655 | : *reinterpret_cast< ::xla::ConvertRequest*>(&::xla::_ConvertRequest_default_instance_); |
| 23656 | } |
| 23657 | inline ::xla::ConvertRequest* OpRequest::unsafe_arena_release_bitcast_convert_request() { |
| 23658 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.bitcast_convert_request) |
| 23659 | if (has_bitcast_convert_request()) { |
| 23660 | clear_has_op(); |
| 23661 | ::xla::ConvertRequest* temp = op_.bitcast_convert_request_; |
| 23662 | op_.bitcast_convert_request_ = NULL; |
| 23663 | return temp; |
| 23664 | } else { |
| 23665 | return NULL; |
| 23666 | } |
| 23667 | } |
| 23668 | inline void OpRequest::unsafe_arena_set_allocated_bitcast_convert_request(::xla::ConvertRequest* bitcast_convert_request) { |
| 23669 | clear_op(); |
| 23670 | if (bitcast_convert_request) { |
| 23671 | set_has_bitcast_convert_request(); |
| 23672 | op_.bitcast_convert_request_ = bitcast_convert_request; |
| 23673 | } |
| 23674 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.bitcast_convert_request) |
| 23675 | } |
| 23676 | inline ::xla::ConvertRequest* OpRequest::mutable_bitcast_convert_request() { |
| 23677 | if (!has_bitcast_convert_request()) { |
| 23678 | clear_op(); |
| 23679 | set_has_bitcast_convert_request(); |
| 23680 | op_.bitcast_convert_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConvertRequest >( |
| 23681 | GetArenaNoVirtual()); |
| 23682 | } |
| 23683 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.bitcast_convert_request) |
| 23684 | return op_.bitcast_convert_request_; |
| 23685 | } |
| 23686 | |
| 23687 | // .xla.ConditionalRequest conditional_request = 44; |
| 23688 | inline bool OpRequest::has_conditional_request() const { |
| 23689 | return op_case() == kConditionalRequest; |
| 23690 | } |
| 23691 | inline void OpRequest::set_has_conditional_request() { |
| 23692 | _oneof_case_[0] = kConditionalRequest; |
| 23693 | } |
| 23694 | inline void OpRequest::clear_conditional_request() { |
| 23695 | if (has_conditional_request()) { |
| 23696 | if (GetArenaNoVirtual() == NULL) { |
| 23697 | delete op_.conditional_request_; |
| 23698 | } |
| 23699 | clear_has_op(); |
| 23700 | } |
| 23701 | } |
| 23702 | inline ::xla::ConditionalRequest* OpRequest::release_conditional_request() { |
| 23703 | // @@protoc_insertion_point(field_release:xla.OpRequest.conditional_request) |
| 23704 | if (has_conditional_request()) { |
| 23705 | clear_has_op(); |
| 23706 | ::xla::ConditionalRequest* temp = op_.conditional_request_; |
| 23707 | if (GetArenaNoVirtual() != NULL) { |
| 23708 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23709 | } |
| 23710 | op_.conditional_request_ = NULL; |
| 23711 | return temp; |
| 23712 | } else { |
| 23713 | return NULL; |
| 23714 | } |
| 23715 | } |
| 23716 | inline const ::xla::ConditionalRequest& OpRequest::conditional_request() const { |
| 23717 | // @@protoc_insertion_point(field_get:xla.OpRequest.conditional_request) |
| 23718 | return has_conditional_request() |
| 23719 | ? *op_.conditional_request_ |
| 23720 | : *reinterpret_cast< ::xla::ConditionalRequest*>(&::xla::_ConditionalRequest_default_instance_); |
| 23721 | } |
| 23722 | inline ::xla::ConditionalRequest* OpRequest::unsafe_arena_release_conditional_request() { |
| 23723 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.conditional_request) |
| 23724 | if (has_conditional_request()) { |
| 23725 | clear_has_op(); |
| 23726 | ::xla::ConditionalRequest* temp = op_.conditional_request_; |
| 23727 | op_.conditional_request_ = NULL; |
| 23728 | return temp; |
| 23729 | } else { |
| 23730 | return NULL; |
| 23731 | } |
| 23732 | } |
| 23733 | inline void OpRequest::unsafe_arena_set_allocated_conditional_request(::xla::ConditionalRequest* conditional_request) { |
| 23734 | clear_op(); |
| 23735 | if (conditional_request) { |
| 23736 | set_has_conditional_request(); |
| 23737 | op_.conditional_request_ = conditional_request; |
| 23738 | } |
| 23739 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.conditional_request) |
| 23740 | } |
| 23741 | inline ::xla::ConditionalRequest* OpRequest::mutable_conditional_request() { |
| 23742 | if (!has_conditional_request()) { |
| 23743 | clear_op(); |
| 23744 | set_has_conditional_request(); |
| 23745 | op_.conditional_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::ConditionalRequest >( |
| 23746 | GetArenaNoVirtual()); |
| 23747 | } |
| 23748 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.conditional_request) |
| 23749 | return op_.conditional_request_; |
| 23750 | } |
| 23751 | |
| 23752 | // .xla.HostComputeRequest host_compute_request = 45; |
| 23753 | inline bool OpRequest::has_host_compute_request() const { |
| 23754 | return op_case() == kHostComputeRequest; |
| 23755 | } |
| 23756 | inline void OpRequest::set_has_host_compute_request() { |
| 23757 | _oneof_case_[0] = kHostComputeRequest; |
| 23758 | } |
| 23759 | inline void OpRequest::clear_host_compute_request() { |
| 23760 | if (has_host_compute_request()) { |
| 23761 | if (GetArenaNoVirtual() == NULL) { |
| 23762 | delete op_.host_compute_request_; |
| 23763 | } |
| 23764 | clear_has_op(); |
| 23765 | } |
| 23766 | } |
| 23767 | inline ::xla::HostComputeRequest* OpRequest::release_host_compute_request() { |
| 23768 | // @@protoc_insertion_point(field_release:xla.OpRequest.host_compute_request) |
| 23769 | if (has_host_compute_request()) { |
| 23770 | clear_has_op(); |
| 23771 | ::xla::HostComputeRequest* temp = op_.host_compute_request_; |
| 23772 | if (GetArenaNoVirtual() != NULL) { |
| 23773 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23774 | } |
| 23775 | op_.host_compute_request_ = NULL; |
| 23776 | return temp; |
| 23777 | } else { |
| 23778 | return NULL; |
| 23779 | } |
| 23780 | } |
| 23781 | inline const ::xla::HostComputeRequest& OpRequest::host_compute_request() const { |
| 23782 | // @@protoc_insertion_point(field_get:xla.OpRequest.host_compute_request) |
| 23783 | return has_host_compute_request() |
| 23784 | ? *op_.host_compute_request_ |
| 23785 | : *reinterpret_cast< ::xla::HostComputeRequest*>(&::xla::_HostComputeRequest_default_instance_); |
| 23786 | } |
| 23787 | inline ::xla::HostComputeRequest* OpRequest::unsafe_arena_release_host_compute_request() { |
| 23788 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.host_compute_request) |
| 23789 | if (has_host_compute_request()) { |
| 23790 | clear_has_op(); |
| 23791 | ::xla::HostComputeRequest* temp = op_.host_compute_request_; |
| 23792 | op_.host_compute_request_ = NULL; |
| 23793 | return temp; |
| 23794 | } else { |
| 23795 | return NULL; |
| 23796 | } |
| 23797 | } |
| 23798 | inline void OpRequest::unsafe_arena_set_allocated_host_compute_request(::xla::HostComputeRequest* host_compute_request) { |
| 23799 | clear_op(); |
| 23800 | if (host_compute_request) { |
| 23801 | set_has_host_compute_request(); |
| 23802 | op_.host_compute_request_ = host_compute_request; |
| 23803 | } |
| 23804 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.host_compute_request) |
| 23805 | } |
| 23806 | inline ::xla::HostComputeRequest* OpRequest::mutable_host_compute_request() { |
| 23807 | if (!has_host_compute_request()) { |
| 23808 | clear_op(); |
| 23809 | set_has_host_compute_request(); |
| 23810 | op_.host_compute_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::HostComputeRequest >( |
| 23811 | GetArenaNoVirtual()); |
| 23812 | } |
| 23813 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.host_compute_request) |
| 23814 | return op_.host_compute_request_; |
| 23815 | } |
| 23816 | |
| 23817 | // .xla.GatherRequest gather_request = 46; |
| 23818 | inline bool OpRequest::has_gather_request() const { |
| 23819 | return op_case() == kGatherRequest; |
| 23820 | } |
| 23821 | inline void OpRequest::set_has_gather_request() { |
| 23822 | _oneof_case_[0] = kGatherRequest; |
| 23823 | } |
| 23824 | inline void OpRequest::clear_gather_request() { |
| 23825 | if (has_gather_request()) { |
| 23826 | if (GetArenaNoVirtual() == NULL) { |
| 23827 | delete op_.gather_request_; |
| 23828 | } |
| 23829 | clear_has_op(); |
| 23830 | } |
| 23831 | } |
| 23832 | inline ::xla::GatherRequest* OpRequest::release_gather_request() { |
| 23833 | // @@protoc_insertion_point(field_release:xla.OpRequest.gather_request) |
| 23834 | if (has_gather_request()) { |
| 23835 | clear_has_op(); |
| 23836 | ::xla::GatherRequest* temp = op_.gather_request_; |
| 23837 | if (GetArenaNoVirtual() != NULL) { |
| 23838 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23839 | } |
| 23840 | op_.gather_request_ = NULL; |
| 23841 | return temp; |
| 23842 | } else { |
| 23843 | return NULL; |
| 23844 | } |
| 23845 | } |
| 23846 | inline const ::xla::GatherRequest& OpRequest::gather_request() const { |
| 23847 | // @@protoc_insertion_point(field_get:xla.OpRequest.gather_request) |
| 23848 | return has_gather_request() |
| 23849 | ? *op_.gather_request_ |
| 23850 | : *reinterpret_cast< ::xla::GatherRequest*>(&::xla::_GatherRequest_default_instance_); |
| 23851 | } |
| 23852 | inline ::xla::GatherRequest* OpRequest::unsafe_arena_release_gather_request() { |
| 23853 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpRequest.gather_request) |
| 23854 | if (has_gather_request()) { |
| 23855 | clear_has_op(); |
| 23856 | ::xla::GatherRequest* temp = op_.gather_request_; |
| 23857 | op_.gather_request_ = NULL; |
| 23858 | return temp; |
| 23859 | } else { |
| 23860 | return NULL; |
| 23861 | } |
| 23862 | } |
| 23863 | inline void OpRequest::unsafe_arena_set_allocated_gather_request(::xla::GatherRequest* gather_request) { |
| 23864 | clear_op(); |
| 23865 | if (gather_request) { |
| 23866 | set_has_gather_request(); |
| 23867 | op_.gather_request_ = gather_request; |
| 23868 | } |
| 23869 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpRequest.gather_request) |
| 23870 | } |
| 23871 | inline ::xla::GatherRequest* OpRequest::mutable_gather_request() { |
| 23872 | if (!has_gather_request()) { |
| 23873 | clear_op(); |
| 23874 | set_has_gather_request(); |
| 23875 | op_.gather_request_ = ::google::protobuf::Arena::CreateMessage< ::xla::GatherRequest >( |
| 23876 | GetArenaNoVirtual()); |
| 23877 | } |
| 23878 | // @@protoc_insertion_point(field_mutable:xla.OpRequest.gather_request) |
| 23879 | return op_.gather_request_; |
| 23880 | } |
| 23881 | |
| 23882 | inline bool OpRequest::has_op() const { |
| 23883 | return op_case() != OP_NOT_SET; |
| 23884 | } |
| 23885 | inline void OpRequest::clear_has_op() { |
| 23886 | _oneof_case_[0] = OP_NOT_SET; |
| 23887 | } |
| 23888 | inline OpRequest::OpCase OpRequest::op_case() const { |
| 23889 | return OpRequest::OpCase(_oneof_case_[0]); |
| 23890 | } |
| 23891 | // ------------------------------------------------------------------- |
| 23892 | |
| 23893 | // OpResponse |
| 23894 | |
| 23895 | // .xla.ComputationDataHandle output = 1; |
| 23896 | inline bool OpResponse::has_output() const { |
| 23897 | return this != internal_default_instance() && output_ != NULL; |
| 23898 | } |
| 23899 | inline void OpResponse::clear_output() { |
| 23900 | if (GetArenaNoVirtual() == NULL && output_ != NULL) { |
| 23901 | delete output_; |
| 23902 | } |
| 23903 | output_ = NULL; |
| 23904 | } |
| 23905 | inline const ::xla::ComputationDataHandle& OpResponse::output() const { |
| 23906 | const ::xla::ComputationDataHandle* p = output_; |
| 23907 | // @@protoc_insertion_point(field_get:xla.OpResponse.output) |
| 23908 | return p != NULL ? *p : *reinterpret_cast<const ::xla::ComputationDataHandle*>( |
| 23909 | &::xla::_ComputationDataHandle_default_instance_); |
| 23910 | } |
| 23911 | inline ::xla::ComputationDataHandle* OpResponse::release_output() { |
| 23912 | // @@protoc_insertion_point(field_release:xla.OpResponse.output) |
| 23913 | |
| 23914 | ::xla::ComputationDataHandle* temp = output_; |
| 23915 | if (GetArenaNoVirtual() != NULL) { |
| 23916 | temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); |
| 23917 | } |
| 23918 | output_ = NULL; |
| 23919 | return temp; |
| 23920 | } |
| 23921 | inline ::xla::ComputationDataHandle* OpResponse::unsafe_arena_release_output() { |
| 23922 | // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpResponse.output) |
| 23923 | |
| 23924 | ::xla::ComputationDataHandle* temp = output_; |
| 23925 | output_ = NULL; |
| 23926 | return temp; |
| 23927 | } |
| 23928 | inline ::xla::ComputationDataHandle* OpResponse::mutable_output() { |
| 23929 | |
| 23930 | if (output_ == NULL) { |
| 23931 | output_ = ::google::protobuf::Arena::CreateMessage< ::xla::ComputationDataHandle >( |
| 23932 | GetArenaNoVirtual()); |
| 23933 | } |
| 23934 | // @@protoc_insertion_point(field_mutable:xla.OpResponse.output) |
| 23935 | return output_; |
| 23936 | } |
| 23937 | inline void OpResponse::set_allocated_output(::xla::ComputationDataHandle* output) { |
| 23938 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 23939 | if (message_arena == NULL) { |
| 23940 | delete output_; |
| 23941 | } |
| 23942 | if (output) { |
| 23943 | ::google::protobuf::Arena* submessage_arena = |
| 23944 | ::google::protobuf::Arena::GetArena(output); |
| 23945 | if (message_arena != submessage_arena) { |
| 23946 | output = ::google::protobuf::internal::GetOwnedMessage( |
| 23947 | message_arena, output, submessage_arena); |
| 23948 | } |
| 23949 | |
| 23950 | } else { |
| 23951 | |
| 23952 | } |
| 23953 | output_ = output; |
| 23954 | // @@protoc_insertion_point(field_set_allocated:xla.OpResponse.output) |
| 23955 | } |
| 23956 | |
| 23957 | #ifdef __GNUC__ |
| 23958 | #pragma GCC diagnostic pop |
| 23959 | #endif // __GNUC__ |
| 23960 | // ------------------------------------------------------------------- |
| 23961 | |
| 23962 | // ------------------------------------------------------------------- |
| 23963 | |
| 23964 | // ------------------------------------------------------------------- |
| 23965 | |
| 23966 | // ------------------------------------------------------------------- |
| 23967 | |
| 23968 | // ------------------------------------------------------------------- |
| 23969 | |
| 23970 | // ------------------------------------------------------------------- |
| 23971 | |
| 23972 | // ------------------------------------------------------------------- |
| 23973 | |
| 23974 | // ------------------------------------------------------------------- |
| 23975 | |
| 23976 | // ------------------------------------------------------------------- |
| 23977 | |
| 23978 | // ------------------------------------------------------------------- |
| 23979 | |
| 23980 | // ------------------------------------------------------------------- |
| 23981 | |
| 23982 | // ------------------------------------------------------------------- |
| 23983 | |
| 23984 | // ------------------------------------------------------------------- |
| 23985 | |
| 23986 | // ------------------------------------------------------------------- |
| 23987 | |
| 23988 | // ------------------------------------------------------------------- |
| 23989 | |
| 23990 | // ------------------------------------------------------------------- |
| 23991 | |
| 23992 | // ------------------------------------------------------------------- |
| 23993 | |
| 23994 | // ------------------------------------------------------------------- |
| 23995 | |
| 23996 | // ------------------------------------------------------------------- |
| 23997 | |
| 23998 | // ------------------------------------------------------------------- |
| 23999 | |
| 24000 | // ------------------------------------------------------------------- |
| 24001 | |
| 24002 | // ------------------------------------------------------------------- |
| 24003 | |
| 24004 | // ------------------------------------------------------------------- |
| 24005 | |
| 24006 | // ------------------------------------------------------------------- |
| 24007 | |
| 24008 | // ------------------------------------------------------------------- |
| 24009 | |
| 24010 | // ------------------------------------------------------------------- |
| 24011 | |
| 24012 | // ------------------------------------------------------------------- |
| 24013 | |
| 24014 | // ------------------------------------------------------------------- |
| 24015 | |
| 24016 | // ------------------------------------------------------------------- |
| 24017 | |
| 24018 | // ------------------------------------------------------------------- |
| 24019 | |
| 24020 | // ------------------------------------------------------------------- |
| 24021 | |
| 24022 | // ------------------------------------------------------------------- |
| 24023 | |
| 24024 | // ------------------------------------------------------------------- |
| 24025 | |
| 24026 | // ------------------------------------------------------------------- |
| 24027 | |
| 24028 | // ------------------------------------------------------------------- |
| 24029 | |
| 24030 | // ------------------------------------------------------------------- |
| 24031 | |
| 24032 | // ------------------------------------------------------------------- |
| 24033 | |
| 24034 | // ------------------------------------------------------------------- |
| 24035 | |
| 24036 | // ------------------------------------------------------------------- |
| 24037 | |
| 24038 | // ------------------------------------------------------------------- |
| 24039 | |
| 24040 | // ------------------------------------------------------------------- |
| 24041 | |
| 24042 | // ------------------------------------------------------------------- |
| 24043 | |
| 24044 | // ------------------------------------------------------------------- |
| 24045 | |
| 24046 | // ------------------------------------------------------------------- |
| 24047 | |
| 24048 | // ------------------------------------------------------------------- |
| 24049 | |
| 24050 | // ------------------------------------------------------------------- |
| 24051 | |
| 24052 | // ------------------------------------------------------------------- |
| 24053 | |
| 24054 | // ------------------------------------------------------------------- |
| 24055 | |
| 24056 | // ------------------------------------------------------------------- |
| 24057 | |
| 24058 | // ------------------------------------------------------------------- |
| 24059 | |
| 24060 | // ------------------------------------------------------------------- |
| 24061 | |
| 24062 | // ------------------------------------------------------------------- |
| 24063 | |
| 24064 | // ------------------------------------------------------------------- |
| 24065 | |
| 24066 | // ------------------------------------------------------------------- |
| 24067 | |
| 24068 | // ------------------------------------------------------------------- |
| 24069 | |
| 24070 | // ------------------------------------------------------------------- |
| 24071 | |
| 24072 | // ------------------------------------------------------------------- |
| 24073 | |
| 24074 | // ------------------------------------------------------------------- |
| 24075 | |
| 24076 | // ------------------------------------------------------------------- |
| 24077 | |
| 24078 | // ------------------------------------------------------------------- |
| 24079 | |
| 24080 | // ------------------------------------------------------------------- |
| 24081 | |
| 24082 | // ------------------------------------------------------------------- |
| 24083 | |
| 24084 | // ------------------------------------------------------------------- |
| 24085 | |
| 24086 | // ------------------------------------------------------------------- |
| 24087 | |
| 24088 | // ------------------------------------------------------------------- |
| 24089 | |
| 24090 | // ------------------------------------------------------------------- |
| 24091 | |
| 24092 | // ------------------------------------------------------------------- |
| 24093 | |
| 24094 | |
| 24095 | // @@protoc_insertion_point(namespace_scope) |
| 24096 | |
| 24097 | } // namespace xla |
| 24098 | |
| 24099 | namespace google { |
| 24100 | namespace protobuf { |
| 24101 | |
| 24102 | template <> struct is_proto_enum< ::xla::OpSharding_Type> : ::google::protobuf::internal::true_type {}; |
| 24103 | template <> |
| 24104 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::OpSharding_Type>() { |
| 24105 | return ::xla::OpSharding_Type_descriptor(); |
| 24106 | } |
| 24107 | template <> struct is_proto_enum< ::xla::PrimitiveType> : ::google::protobuf::internal::true_type {}; |
| 24108 | template <> |
| 24109 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::PrimitiveType>() { |
| 24110 | return ::xla::PrimitiveType_descriptor(); |
| 24111 | } |
| 24112 | template <> struct is_proto_enum< ::xla::PaddingValue> : ::google::protobuf::internal::true_type {}; |
| 24113 | template <> |
| 24114 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::PaddingValue>() { |
| 24115 | return ::xla::PaddingValue_descriptor(); |
| 24116 | } |
| 24117 | template <> struct is_proto_enum< ::xla::Format> : ::google::protobuf::internal::true_type {}; |
| 24118 | template <> |
| 24119 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::Format>() { |
| 24120 | return ::xla::Format_descriptor(); |
| 24121 | } |
| 24122 | template <> struct is_proto_enum< ::xla::FftType> : ::google::protobuf::internal::true_type {}; |
| 24123 | template <> |
| 24124 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::FftType>() { |
| 24125 | return ::xla::FftType_descriptor(); |
| 24126 | } |
| 24127 | template <> struct is_proto_enum< ::xla::UnaryOperation> : ::google::protobuf::internal::true_type {}; |
| 24128 | template <> |
| 24129 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::UnaryOperation>() { |
| 24130 | return ::xla::UnaryOperation_descriptor(); |
| 24131 | } |
| 24132 | template <> struct is_proto_enum< ::xla::BinaryOperation> : ::google::protobuf::internal::true_type {}; |
| 24133 | template <> |
| 24134 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::BinaryOperation>() { |
| 24135 | return ::xla::BinaryOperation_descriptor(); |
| 24136 | } |
| 24137 | template <> struct is_proto_enum< ::xla::RandomDistribution> : ::google::protobuf::internal::true_type {}; |
| 24138 | template <> |
| 24139 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::RandomDistribution>() { |
| 24140 | return ::xla::RandomDistribution_descriptor(); |
| 24141 | } |
| 24142 | template <> struct is_proto_enum< ::xla::TernaryOperation> : ::google::protobuf::internal::true_type {}; |
| 24143 | template <> |
| 24144 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::TernaryOperation>() { |
| 24145 | return ::xla::TernaryOperation_descriptor(); |
| 24146 | } |
| 24147 | template <> struct is_proto_enum< ::xla::VariadicOperation> : ::google::protobuf::internal::true_type {}; |
| 24148 | template <> |
| 24149 | inline const EnumDescriptor* GetEnumDescriptor< ::xla::VariadicOperation>() { |
| 24150 | return ::xla::VariadicOperation_descriptor(); |
| 24151 | } |
| 24152 | |
| 24153 | } // namespace protobuf |
| 24154 | } // namespace google |
| 24155 | |
| 24156 | // @@protoc_insertion_point(global_scope) |
| 24157 | |
| 24158 | #endif // PROTOBUF_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto_INCLUDED |
| 24159 | |